[test] Update tests to include location string.

This commit is contained in:
Alexander Arlt
2022-04-01 23:41:18 -05:00
parent d4c02f2270
commit 0783ad9000
2684 changed files with 5877 additions and 5877 deletions
@@ -4,4 +4,4 @@ contract C {
fallback() external { x = 3; }
}
// ----
// DeclarationError 7301: (64-94): Only one fallback function is allowed.
// DeclarationError 7301: (64-94='fallback() external { x = 3; }'): Only one fallback function is allowed.
@@ -8,5 +8,5 @@ contract C {
}
}
// ----
// Warning 2319: (61-88): This declaration shadows a builtin symbol.
// Warning 2319: (90-118): This declaration shadows a builtin symbol.
// Warning 2319: (61-88='function this() public { }'): This declaration shadows a builtin symbol.
// Warning 2319: (90-118='function super() public { }'): This declaration shadows a builtin symbol.
@@ -12,6 +12,6 @@ contract C {
// ----
// DeclarationError 3726: (17-78): The name "_" is reserved.
// DeclarationError 3726: (84-117): The name "super" is reserved.
// DeclarationError 3726: (123-155): The name "this" is reserved.
// DeclarationError 3726: (123-155='function this() internal { }'): The name "this" is reserved.
// Warning 2319: (84-117): This declaration shadows a builtin symbol.
// Warning 2319: (123-155): This declaration shadows a builtin symbol.
// Warning 2319: (123-155='function this() internal { }'): This declaration shadows a builtin symbol.
@@ -4,5 +4,5 @@ contract C {
receive() external payable { }
}
// ----
// DeclarationError 4046: (52-82): Only one receive function is allowed.
// DeclarationError 4046: (87-117): Only one receive function is allowed.
// DeclarationError 4046: (52-82='receive() external payable { }'): Only one receive function is allowed.
// DeclarationError 4046: (87-117='receive() external payable { }'): Only one receive function is allowed.