mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 19:22:37 +00:00
They are not keywords anymore. > var cell = ...; > var cell: cell = ...; Motivation: in the future, when structures are implemented, this obviously should be valid: > struct a { ... } > var a = ...; Struct fields will also be allowed to have names int/slice/cell.
17 lines
372 B
Text
17 lines
372 B
Text
@method_id(1)
|
|
fun foo1(): int { return 111; }
|
|
@method_id(3)
|
|
fun foo2(): int { return 222; }
|
|
@method_id(10)
|
|
fun foo3(): int { return 333; }
|
|
@method_id(11)
|
|
fun slice(slice: slice): slice { return slice; }
|
|
fun main(): int { return 999; }
|
|
|
|
/**
|
|
method_id | in | out
|
|
@testcase | 1 | | 111
|
|
@testcase | 3 | | 222
|
|
@testcase | 10 | | 333
|
|
@testcase | 0 | | 999
|
|
*/
|