mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
revert X();
|
||||
// ----
|
||||
// ParserError 2314: (8-9): Expected ';' but got '('
|
||||
// ParserError 2314: (8-9='('): Expected ';' but got '('
|
||||
|
||||
@@ -3,4 +3,4 @@ function f() pure {
|
||||
E();
|
||||
}
|
||||
// ----
|
||||
// TypeError 7757: (35-38): Errors can only be used with revert statements: "revert MyError();".
|
||||
// TypeError 7757: (35-38='E()'): Errors can only be used with revert statements: "revert MyError();".
|
||||
|
||||
@@ -3,4 +3,4 @@ function f() public pure {
|
||||
revert E;
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (50-51): Expected '(' but got ';'
|
||||
// ParserError 2314: (50-51=';'): Expected '(' but got ';'
|
||||
|
||||
@@ -2,4 +2,4 @@ function f() public pure {
|
||||
revert 1;
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (38-39): Expected ';' but got 'Number'
|
||||
// ParserError 2314: (38-39='1'): Expected ';' but got 'Number'
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 1885: (74-75): Expression has to be an error.
|
||||
// TypeError 1885: (74-75='E'): Expression has to be an error.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 2319: (0-15): This declaration shadows a builtin symbol.
|
||||
// Warning 2319: (0-15='error revert();'): This declaration shadows a builtin symbol.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
// ----
|
||||
// Warning 2519: (38-91): This declaration shadows an existing declaration.
|
||||
// TypeError 1885: (79-80): Expression has to be an error.
|
||||
// TypeError 1885: (79-80='f'): Expression has to be an error.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 1885: (75-76): Expression has to be an error.
|
||||
// TypeError 1885: (75-76='S'): Expression has to be an error.
|
||||
|
||||
Reference in New Issue
Block a user