1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-13 11:42:18 +00:00
ton/tolk-tester/tests/invalid-typing-3.tolk

20 lines
363 B
Text
Raw Normal View History

fun incInt(mutate self: int): self {
self += 1;
return self;
}
fun appendBuilder(mutate self: builder): self {
self.storeUint(1, 32);
return self;
}
fun cantMixDifferentThis() {
var x = 0;
return x.incInt().appendBuilder().incInt();
}
/**
@compilation_should_fail
@stderr can not call method for `builder` with object of type `int`
*/