mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error codes to SyntaxTest expectations (updated tests)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
contract c {
|
||||
function f() pure public { 1.
|
||||
// ----
|
||||
// ParserError: (47-47): Expected identifier but got end of source
|
||||
// ParserError 2314: (47-47): Expected identifier but got end of source
|
||||
|
||||
@@ -2,4 +2,4 @@ contract test {
|
||||
function f() pure public { 1.x; }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (47-50): Member "x" not found or not visible after argument-dependent lookup in int_const 1.
|
||||
// TypeError 9582: (47-50): Member "x" not found or not visible after argument-dependent lookup in int_const 1.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
contract c {
|
||||
function f() pure public { 0.
|
||||
// ----
|
||||
// ParserError: (47-47): Expected identifier but got end of source
|
||||
// ParserError 2314: (47-47): Expected identifier but got end of source
|
||||
|
||||
@@ -2,4 +2,4 @@ contract test {
|
||||
function f() pure public { 0.x; }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (47-50): Member "x" not found or not visible after argument-dependent lookup in int_const 0.
|
||||
// TypeError 9582: (47-50): Member "x" not found or not visible after argument-dependent lookup in int_const 0.
|
||||
|
||||
Reference in New Issue
Block a user