mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
9 lines
197 B
Text
9 lines
197 B
Text
fun testLogicalAndNotConditionDoesntAffect(x: int?) {
|
|
var gt1 = x != null && x > 1;
|
|
return x + 0;
|
|
}
|
|
|
|
/**
|
|
@compilation_should_fail
|
|
@stderr can not apply operator `+` to `int?` and `int`
|
|
*/
|