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:
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (121-129): Expected ',' but got 'calldata'
|
||||
// ParserError 2314: (121-129='calldata'): Expected ',' but got 'calldata'
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (52-73): Statement has no effect.
|
||||
// Warning 6133: (52-73='abi.decode("abc", ())'): Statement has no effect.
|
||||
|
||||
+4
-4
@@ -6,7 +6,7 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// 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.
|
||||
// TypeError 5782: (46-58='abi.decode()'): This function takes two arguments, but 0 were provided.
|
||||
// TypeError 5782: (64-84='abi.decode(msg.data)'): This function takes two arguments, but 1 were provided.
|
||||
// TypeError 5782: (90-122='abi.decode(msg.data, uint, uint)'): This function takes two arguments, but 3 were provided.
|
||||
// TypeError 6444: (111-115='uint'): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
+2
-2
@@ -4,5 +4,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// 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.
|
||||
// TypeError 1956: (57-61='uint'): 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='uint'): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
@@ -4,4 +4,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (71-77): Expected ',' but got 'memory'
|
||||
// ParserError 2314: (71-77='memory'): Expected ',' but got 'memory'
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9611: (92-101): Decoding type uint256[] memory[3] memory not supported.
|
||||
// TypeError 9611: (92-101='uint[][3]'): Decoding type uint256[] memory[3] memory not supported.
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (87-118): Statement has no effect.
|
||||
// Warning 6133: (87-118='abi.decode("1234", (uint[][3]))'): Statement has no effect.
|
||||
|
||||
@@ -6,6 +6,6 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// 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.
|
||||
// TypeError 6444: (64-68='uint'): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 6444: (93-97='this'): The second argument to "abi.decode" has to be a tuple of types.
|
||||
// TypeError 6444: (122-125='f()'): The second argument to "abi.decode" has to be a tuple of types.
|
||||
|
||||
@@ -5,4 +5,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (109-116): Expected ',' but got 'storage'
|
||||
// ParserError 2314: (109-116='storage'): Expected ',' but got 'storage'
|
||||
|
||||
@@ -9,4 +9,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError 9611: (118-119): Decoding type struct S memory not supported.
|
||||
// TypeError 9611: (118-119='S'): Decoding type struct S memory not supported.
|
||||
|
||||
@@ -10,4 +10,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// Warning 6133: (113-136): Statement has no effect.
|
||||
// Warning 6133: (113-136='abi.decode("1234", (S))'): Statement has no effect.
|
||||
|
||||
Reference in New Issue
Block a user