mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
13 lines
195 B
Text
13 lines
195 B
Text
|
|
fun getNullable4(): int? {
|
|
return 4;
|
|
}
|
|
|
|
fun testCantSumNullable() {
|
|
return 1 + getNullable4();
|
|
}
|
|
|
|
/**
|
|
@compilation_should_fail
|
|
@stderr can not apply operator `+` to `int` and `int?`
|
|
*/
|