Added error codes to SyntaxTest expectations (updated tests)

This commit is contained in:
a3d4
2020-06-22 16:51:47 +02:00
parent 8ebe7676d5
commit e04cedafc5
1775 changed files with 3951 additions and 3952 deletions
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (67-70): Cannot use builtin function name "mod" as identifier name.
// ParserError 5568: (67-70): Cannot use builtin function name "mod" as identifier name.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (95-98): Expected '(' but got identifier
// ParserError 2314: (95-98): Expected '(' but got identifier
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError: (111-126): Call data elements cannot be accessed directly. Copy to a local variable first or use "calldataload" or "calldatacopy" with manually determined offsets and sizes.
// TypeError 2370: (111-126): Call data elements cannot be accessed directly. Copy to a local variable first or use "calldataload" or "calldatacopy" with manually determined offsets and sizes.
@@ -7,6 +7,6 @@ contract C {
int constant c = 0 + 1;
}
// ----
// SyntaxError: (15-83): No visibility specified. Did you intend to add "public"?
// TypeError: (71-72): Constant variables with non-literal values cannot be forward referenced from inline assembly.
// TypeError: (51-52): Constant variables cannot be assigned to.
// SyntaxError 4937: (15-83): No visibility specified. Did you intend to add "public"?
// TypeError 2249: (71-72): Constant variables with non-literal values cannot be forward referenced from inline assembly.
// TypeError 6252: (51-52): Constant variables cannot be assigned to.
@@ -7,4 +7,4 @@ contract test {
}
}
// ----
// TypeError: (98-99): Constant variables cannot be assigned to.
// TypeError 6252: (98-99): Constant variables cannot be assigned to.
@@ -7,4 +7,4 @@ contract test {
}
}
// ----
// TypeError: (112-120): The suffixes _offset and _slot can only be used on non-constant storage variables.
// TypeError 6617: (112-120): The suffixes _offset and _slot can only be used on non-constant storage variables.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// ParserError: (101-102): Literal or identifier expected.
// ParserError 1856: (101-102): Literal or identifier expected.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// ParserError: (103-104): Literal or identifier expected.
// ParserError 1856: (103-104): Literal or identifier expected.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (96-97): Literal or identifier expected.
// ParserError 1856: (96-97): Literal or identifier expected.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (72-73): Expected identifier but got '('
// ParserError 2314: (72-73): Expected identifier but got '('
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (72-73): Literal or identifier expected.
// ParserError 1856: (72-73): Literal or identifier expected.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// DeclarationError: (75-79): Function not found.
// DeclarationError 4619: (75-79): Function not found.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (80-81): Call or assignment expected.
// ParserError 6913: (80-81): Call or assignment expected.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError: (75-83): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
// TypeError 3083: (75-83): Top-level expressions are not supposed to return values (this expression returns 1 value). Use ``pop()`` or assign them.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (85-86): Call or assignment expected.
// ParserError 6913: (85-86): Call or assignment expected.
@@ -7,4 +7,4 @@ contract test {
}
}
// ----
// DeclarationError: (114-115): Cannot access local Solidity variables from inside an inline assembly function.
// DeclarationError 6578: (114-115): Cannot access local Solidity variables from inside an inline assembly function.
@@ -8,4 +8,4 @@ contract test {
}
}
// ----
// DeclarationError: (142-150): Cannot access local Solidity variables from inside an inline assembly function.
// DeclarationError 6578: (142-150): Cannot access local Solidity variables from inside an inline assembly function.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// DeclarationError: (63-64): Variable not found or variable not lvalue.
// DeclarationError 4634: (63-64): Variable not found or variable not lvalue.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (87-89): Literal or identifier expected.
// ParserError 1856: (87-89): Literal or identifier expected.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (102-105): Cannot use builtin function name "sub" as identifier name.
// ParserError 5568: (102-105): Cannot use builtin function name "sub" as identifier name.
@@ -9,4 +9,4 @@ contract C {
}
}
// ----
// DeclarationError: (130-131): Cannot access local Solidity variables from inside an inline assembly function.
// DeclarationError 6578: (130-131): Cannot access local Solidity variables from inside an inline assembly function.
@@ -7,4 +7,4 @@ contract test {
}
}
// ----
// TypeError: (89-90): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
// TypeError 1408: (89-90): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
@@ -10,4 +10,4 @@ contract test {
}
}
// ----
// TypeError: (80-81): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
// TypeError 1408: (80-81): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
@@ -6,4 +6,4 @@ contract test {
}
}
// ----
// ParserError: (85-86): Expected '(' but got '}'
// ParserError 2314: (85-86): Expected '(' but got '}'
@@ -6,4 +6,4 @@ contract test {
}
}
// ----
// ParserError: (83-84): Call or assignment expected.
// ParserError 6913: (83-84): Call or assignment expected.
@@ -5,4 +5,4 @@ contract c {
}
}
// ----
// TypeError: (75-76): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
// TypeError 1408: (75-76): Only local variables are supported. To access storage variables, use the _slot and _offset suffixes.
@@ -9,7 +9,7 @@ contract C {
}
}
// ----
// DeclarationError: (79-87): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError: (109-115): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError: (137-144): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError: (166-171): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError 9155: (79-87): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError 9155: (109-115): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError 9155: (137-144): In variable declarations _slot and _offset can not be used as a suffix.
// DeclarationError 9155: (166-171): In variable declarations _slot and _offset can not be used as a suffix.
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// ParserError: (71-72): Expected identifier but got '='
// ParserError 2314: (71-72): Expected identifier but got '='
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// ParserError: (109-110): Expected identifier but got '='
// ParserError 2314: (109-110): Expected identifier but got '='