mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
15 lines
320 B
Text
15 lines
320 B
Text
fun getNullableInt(): int? { return 5; }
|
|
|
|
fun testFlowContextAppliedInBinaryOperator() {
|
|
var x: int? = getNullableInt();
|
|
var y: int? = getNullableInt();
|
|
if ((y = null) < y) {
|
|
return -100;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
@compilation_should_fail
|
|
@stderr can not apply operator `<` to `null` and `null`
|
|
*/
|