mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
[Tolk] Allow cell
and slice
be valid identifiers
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.
This commit is contained in:
parent
7a1602f591
commit
5b44e01455
9 changed files with 47 additions and 69 deletions
|
@ -1,12 +1,12 @@
|
|||
fun main() {
|
||||
try {
|
||||
|
||||
} catch(int, arg) {}
|
||||
} catch(if, arg) {}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
@compilation_should_fail
|
||||
@stderr expected identifier, got `int`
|
||||
@stderr catch(int
|
||||
@stderr expected identifier, got `if`
|
||||
@stderr catch(if
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue