mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
18 lines
264 B
Text
18 lines
264 B
Text
|
@pure
|
||
|
get fun secret(): int {
|
||
|
return 0;
|
||
|
}
|
||
|
@pure
|
||
|
get fun balanced(): int {
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
fun main(): int {
|
||
|
return secret() + balanced();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
@compilation_should_fail
|
||
|
@stderr GET methods hash collision: `secret` and `balanced` produce the same hash
|
||
|
*/
|