1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 03:32:22 +00:00
ton/tolk-tester/tests/invalid-symbol-1.tolk

15 lines
221 B
Text
Raw Permalink Normal View History

fun main(x: int): int {
if (x > 0) {
var y: int = 10;
} else {
var y: slice = "20";
}
debugPrint(y);
}
/**
@compilation_should_fail
@stderr debugPrint(y);
@stderr undefined symbol `y`
*/