mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +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.
8 lines
108 B
Text
8 lines
108 B
Text
fun main(int): int {
|
|
|
|
}
|
|
|
|
/**
|
|
@compilation_should_fail
|
|
@stderr expected `: <parameter_type>`, got `)`
|
|
*/
|