Merge pull request #14078 from ethereum/fix_missing_keyword_unicode

Fix missing keyword `unicode` in grammar
This commit is contained in:
Kamil Śliwak 2023-04-03 12:53:20 +02:00 committed by GitHub
commit 79d975a77d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -90,6 +90,7 @@ Try: 'try';
Type: 'type';
Ufixed: 'ufixed' | ('ufixed' [1-9][0-9]+ 'x' [1-9][0-9]+);
Unchecked: 'unchecked';
Unicode: 'unicode';
/**
* Sized unsigned integer types.
* uint is an alias of uint256.

View File

@ -0,0 +1,4 @@
function unicode() returns {}
// ----
// ParserError 2314: (9-16): Expected identifier but got 'ILLEGAL'

View File

@ -0,0 +1,6 @@
contract C
{
string unicode = "abc";
}
// ----
// ParserError 2314: (24-31): Expected identifier but got 'ILLEGAL'