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:
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError: (121-129): Expected ',' but got 'calldata'
|
||||
// ParserError 2314: (121-129): Expected ',' but got 'calldata'
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning: (52-73): Statement has no effect.
|
||||
// Warning 6133: (52-73): Statement has no effect.
|
||||
|
||||
+4
-4
@@ -6,7 +6,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (46-58): This function takes two arguments, but 0 were provided.
|
||||
// TypeError: (64-84): This function takes two arguments, but 1 were provided.
|
||||
// TypeError: (90-122): This function takes two arguments, but 3 were provided.
|
||||
// TypeError: (111-115): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 5782: (46-58): This function takes two arguments, but 0 were provided.
|
||||
// TypeError 5782: (64-84): This function takes two arguments, but 1 were provided.
|
||||
// TypeError 5782: (90-122): This function takes two arguments, but 3 were provided.
|
||||
// TypeError 6444: (111-115): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
+2
-2
@@ -4,5 +4,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (57-61): The first argument to "abi.decode" must be implicitly convertible to bytes memory or bytes calldata, but is of type type(uint256).
|
||||
// TypeError: (63-67): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 1956: (57-61): The first argument to "abi.decode" must be implicitly convertible to bytes memory or bytes calldata, but is of type type(uint256).
|
||||
// TypeError 6444: (63-67): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError: (71-77): Expected ',' but got 'memory'
|
||||
// ParserError 2314: (71-77): Expected ',' but got 'memory'
|
||||
|
||||
@@ -6,6 +6,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (64-68): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError: (93-97): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError: (122-125): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 6444: (64-68): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 6444: (93-97): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 6444: (122-125): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError: (109-116): Expected ',' but got 'storage'
|
||||
// ParserError 2314: (109-116): Expected ',' but got 'storage'
|
||||
|
||||
Reference in New Issue
Block a user