Merge pull request #14104 from ethereum/extract-parse-literal

Refactor literal parsing before adding suffixes
This commit is contained in:
Kamil Śliwak
2023-04-12 14:52:04 +02:00
committed by GitHub
4 changed files with 63 additions and 48 deletions
@@ -1,7 +1,7 @@
contract C {
function f() {
uint x = 1 finney;
}
function f() public {
uint x = 1 finney;
}
}
// ----
// ParserError 2314: (45-51): Expected ';' but got identifier
// ParserError 2314: (58-64): Expected ';' but got identifier
@@ -1,7 +1,7 @@
contract C {
function f() {
uint x = 1 szabo;
}
function f() public {
uint x = 1 szabo;
}
}
// ----
// ParserError 2314: (45-50): Expected ';' but got identifier
// ParserError 2314: (58-63): Expected ';' but got identifier