[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
@@ -7,7 +7,7 @@ contract C {
}
}
// ----
// TypeError 9308: (52-76): Need at least 1 arguments for function call, but provided only 0.
// TypeError 9308: (86-111): Need at least 1 arguments for function call, but provided only 0.
// TypeError 9553: (144-151): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes4 requested.
// TypeError 9553: (189-196): Invalid type for argument in function call. Invalid implicit conversion from uint256 to string memory requested.
// TypeError 9308: (52-76='abi.encodeWithSelector()'): Need at least 1 arguments for function call, but provided only 0.
// TypeError 9308: (86-111='abi.encodeWithSignature()'): Need at least 1 arguments for function call, but provided only 0.
// TypeError 9553: (144-151='uint(2)'): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes4 requested.
// TypeError 9553: (189-196='uint(2)'): Invalid type for argument in function call. Invalid implicit conversion from uint256 to string memory requested.
@@ -14,5 +14,5 @@ abstract contract D is I {
}
}
// ----
// TypeError 7501: (172-177): Cannot call unimplemented base function.
// TypeError 9582: (278-285): Member "a" not found or not visible after argument-dependent lookup in type(contract super D).
// TypeError 7501: (172-177='I.a()'): Cannot call unimplemented base function.
// TypeError 9582: (278-285='super.a'): Member "a" not found or not visible after argument-dependent lookup in type(contract super D).
@@ -5,4 +5,4 @@ contract C {
function f(S calldata) public {}
}
// ----
// TypeError 4103: (56-66): Internal type is not allowed for public or external functions.
// TypeError 4103: (56-66='S calldata'): Internal type is not allowed for public or external functions.
@@ -5,4 +5,4 @@ contract C {
function f(S[2] calldata) public {}
}
// ----
// TypeError 4103: (56-69): Internal type is not allowed for public or external functions.
// TypeError 4103: (56-69='S[2] calldata'): Internal type is not allowed for public or external functions.
@@ -5,4 +5,4 @@ contract C {
constructor (S[2] storage) public {}
}
// ----
// TypeError 3644: (58-70): This parameter has a type that can only be used internally. You can make the contract abstract to avoid this problem.
// TypeError 3644: (58-70='S[2] storage'): This parameter has a type that can only be used internally. You can make the contract abstract to avoid this problem.
@@ -10,8 +10,8 @@ contract C {
// ====
// EVMVersion: >=constantinople
// ----
// TypeError 9886: (78-101): Duplicate option "gas".
// TypeError 9886: (111-138): Duplicate option "value".
// TypeError 9886: (78-101='this.foo{gas:2, gas: 5}'): Duplicate option "gas".
// TypeError 9886: (111-138='this.foo{value:2, value: 5}'): Duplicate option "value".
// TypeError 9886: (148-189): Duplicate option "gas".
// TypeError 9886: (148-189): Duplicate option "value".
// TypeError 9886: (199-228): Duplicate option "salt".
// TypeError 9886: (199-228='new D{salt:"abc", salt:"efg"}'): Duplicate option "salt".
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError 2193: (75-86): Function call options can only be set on external function calls or contract creations.
// TypeError 2193: (75-86='foo{gas: 5}'): Function call options can only be set on external function calls or contract creations.
@@ -11,8 +11,8 @@ contract C {
// ====
// EVMVersion: >=constantinople
// ----
// TypeError 1645: (78-110): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (78-110='this.foo{value:2, gas: 5}{gas:2}'): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (120-154): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (164-198): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (208-249): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (259-286): Function call options have already been set, you have to combine them into a single {...}-option.
// TypeError 1645: (259-286='new D{salt:"abc"}{salt:"a"}'): Function call options have already been set, you have to combine them into a single {...}-option.
@@ -5,4 +5,4 @@ contract C
}
}
// ----
// TypeError 5704: (53-60): Type is not callable
// TypeError 5704: (53-60='1 ( 3 )'): Type is not callable
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError 2622: (71-79): Expected callable expression before call options.
// TypeError 2622: (71-79='a{val:5}'): Expected callable expression before call options.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError 9318: (73-93): Unknown call option "random". Valid options are "salt", "value" and "gas".
// TypeError 9318: (73-93='this.foo{random:5+5}'): Unknown call option "random". Valid options are "salt", "value" and "gas".
@@ -8,7 +8,7 @@ contract C {
}
}
// ----
// TypeError 4974: (199-229): Named argument "x" does not match function declaration.
// TypeError 4974: (199-229): Named argument "y" does not match function declaration.
// TypeError 4974: (239-264): Named argument "x" does not match function declaration.
// TypeError 4974: (239-264): Named argument "y" does not match function declaration.
// TypeError 4974: (199-229='(true ? g : h)({x : 1, y : 2})'): Named argument "x" does not match function declaration.
// TypeError 4974: (199-229='(true ? g : h)({x : 1, y : 2})'): Named argument "y" does not match function declaration.
// TypeError 4974: (239-264='[g, h][1]({x : 1, y : 2})'): Named argument "x" does not match function declaration.
// TypeError 4974: (239-264='[g, h][1]({x : 1, y : 2})'): Named argument "y" does not match function declaration.
@@ -4,4 +4,4 @@ contract C {
}
}
// ----
// TypeError 5887: (78-87): "msg.value" and "callvalue()" can only be used in payable public functions. Make the function "payable" or use an internal function to avoid this error.
// TypeError 5887: (78-87='msg.value'): "msg.value" and "callvalue()" can only be used in payable public functions. Make the function "payable" or use an internal function to avoid this error.
@@ -7,6 +7,6 @@ contract test {
}
}
// ----
// Warning 2519: (31-37): This declaration shadows an existing declaration.
// Warning 2519: (39-45): This declaration shadows an existing declaration.
// TypeError 6995: (159-160): Duplicate named argument "a".
// Warning 2519: (31-37='uint a'): This declaration shadows an existing declaration.
// Warning 2519: (39-45='uint b'): This declaration shadows an existing declaration.
// TypeError 6995: (159-160='1'): Duplicate named argument "a".
@@ -7,6 +7,6 @@ contract test {
}
}
// ----
// Warning 2519: (31-37): This declaration shadows an existing declaration.
// Warning 2519: (39-45): This declaration shadows an existing declaration.
// TypeError 6160: (153-158): Wrong argument count for function call: 0 arguments given but expected 2.
// Warning 2519: (31-37='uint a'): This declaration shadows an existing declaration.
// Warning 2519: (39-45='uint b'): This declaration shadows an existing declaration.
// TypeError 6160: (153-158='a({})'): Wrong argument count for function call: 0 arguments given but expected 2.
@@ -11,4 +11,4 @@ contract C {
}
}
// ----
// TypeError 9322: (241-242): No matching declaration found after argument-dependent lookup.
// TypeError 9322: (241-242='f'): No matching declaration found after argument-dependent lookup.
@@ -9,4 +9,4 @@ contract C {
}
}
// ----
// TypeError 9322: (209-210): No matching declaration found after argument-dependent lookup.
// TypeError 9322: (209-210='f'): No matching declaration found after argument-dependent lookup.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// TypeError 9322: (214-215): No matching declaration found after argument-dependent lookup.
// TypeError 9322: (214-215='f'): No matching declaration found after argument-dependent lookup.
@@ -8,4 +8,4 @@ contract C {
}
}
// ----
// TypeError 4487: (233-234): No unique declaration found after argument-dependent lookup.
// TypeError 4487: (233-234='f'): No unique declaration found after argument-dependent lookup.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError 4487: (155-156): No unique declaration found after argument-dependent lookup.
// TypeError 4487: (155-156='f'): No unique declaration found after argument-dependent lookup.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError 9322: (164-165): No matching declaration found after argument-dependent lookup.
// TypeError 9322: (164-165='f'): No matching declaration found after argument-dependent lookup.
@@ -7,4 +7,4 @@ contract C {
}
}
// ----
// TypeError 9322: (164-165): No matching declaration found after argument-dependent lookup.
// TypeError 9322: (164-165='f'): No matching declaration found after argument-dependent lookup.
@@ -7,6 +7,6 @@ contract test {
}
}
// ----
// Warning 2519: (31-37): This declaration shadows an existing declaration.
// Warning 2519: (39-45): This declaration shadows an existing declaration.
// TypeError 6160: (153-162): Wrong argument count for function call: 1 arguments given but expected 2.
// Warning 2519: (31-37='uint a'): This declaration shadows an existing declaration.
// Warning 2519: (39-45='uint b'): This declaration shadows an existing declaration.
// TypeError 6160: (153-162='a({a: 1})'): Wrong argument count for function call: 1 arguments given but expected 2.
@@ -5,4 +5,4 @@ contract C {
}
}
// ----
// TypeError 1130: (63-64): Invalid use of a library name.
// TypeError 1130: (63-64='L'): Invalid use of a library name.
@@ -16,12 +16,12 @@ contract C {
// ----
// TypeError 7006: (64-98): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 9903: (64-98): Function call option "gas" cannot be used with "new".
// TypeError 9318: (102-123): Unknown call option "slt". Valid options are "salt", "value" and "gas".
// TypeError 7006: (102-123): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 9318: (127-139): Unknown call option "val". Valid options are "salt", "value" and "gas".
// TypeError 9886: (143-172): Duplicate option "salt".
// TypeError 7006: (176-199): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 7006: (176-199): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 9318: (203-220): Unknown call option "random". Valid options are "salt", "value" and "gas".
// TypeError 9318: (224-242): Unknown call option "what". Valid options are "salt", "value" and "gas".
// TypeError 9903: (246-259): Function call option "gas" cannot be used with "new".
// TypeError 9318: (102-123='new D{slt:5, value:3}'): Unknown call option "slt". Valid options are "salt", "value" and "gas".
// TypeError 7006: (102-123='new D{slt:5, value:3}'): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 9318: (127-139='new D{val:5}'): Unknown call option "val". Valid options are "salt", "value" and "gas".
// TypeError 9886: (143-172='new D{salt:"xyz", salt:"aaf"}'): Duplicate option "salt".
// TypeError 7006: (176-199='new D{value:3, value:4}'): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 7006: (176-199='new D{value:3, value:4}'): Cannot set option "value", since the constructor of contract D is not payable.
// TypeError 9318: (203-220='new D{random:5+5}'): Unknown call option "random". Valid options are "salt", "value" and "gas".
// TypeError 9318: (224-242='new D{what:2130+5}'): Unknown call option "what". Valid options are "salt", "value" and "gas".
// TypeError 9903: (246-259='new D{gas: 2}'): Function call option "gas" cannot be used with "new".
@@ -6,4 +6,4 @@ contract C {
}
}
// ----
// TypeError 5704: (72-78): Type is not callable
// TypeError 5704: (72-78='this()'): Type is not callable