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:
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 6933: (57-66): Expected primary expression.
|
||||
// ParserError 6933: (57-66='unchecked'): Expected primary expression.
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
function f() pure returns (uint) unchecked {}
|
||||
// ----
|
||||
// ParserError 5296: (33-42): "unchecked" blocks can only be used inside regular blocks.
|
||||
// ParserError 5296: (33-42='unchecked'): "unchecked" blocks can only be used inside regular blocks.
|
||||
|
||||
@@ -2,4 +2,4 @@ contract C {
|
||||
modifier m() { unchecked { _; } }
|
||||
}
|
||||
// ----
|
||||
// SyntaxError 2573: (44-45): The placeholder statement "_" cannot be used inside an "unchecked" block.
|
||||
// SyntaxError 2573: (44-45='_'): The placeholder statement "_" cannot be used inside an "unchecked" block.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 6933: (76-85): Expected primary expression.
|
||||
// ParserError 6933: (76-85='unchecked'): Expected primary expression.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 6933: (26-35): Expected primary expression.
|
||||
// ParserError 6933: (26-35='unchecked'): Expected primary expression.
|
||||
|
||||
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 5296: (65-74): "unchecked" blocks can only be used inside regular blocks.
|
||||
// ParserError 5296: (65-74='unchecked'): "unchecked" blocks can only be used inside regular blocks.
|
||||
|
||||
Reference in New Issue
Block a user