mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parser: Extract literal parsing into a separate function
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user