1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00
ton/tolk-tester/tests/invalid-mutate-9.tolk

10 lines
192 B
Text
Raw Normal View History

fun increment(self: int) {
self = self + 1;
}
/**
@compilation_should_fail
@stderr modifying `self`, which is immutable by default
@stderr probably, you want to declare `mutate self`
*/