1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00
ton/crypto/func/auto-tests/tests/invalid-get-method-2.fc

15 lines
246 B
Text

get int secret() pure {
return 0;
}
get int balanced() pure {
return 1;
}
int main() {
return secret() + balanced();
}
{-
@compilation_should_fail
@stderr GET methods hash collision: `secret` and `balanced` produce the same hash
-}