[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
@@ -8,4 +8,4 @@ contract testContract {
}
}
// ----
// TypeError 5407: (171-183): Cannot implicitly convert component at position 0 from "address" to "address payable".
// TypeError 5407: (171-183='(address(0))'): Cannot implicitly convert component at position 0 from "address" to "address payable".
@@ -12,5 +12,5 @@ contract testContract {
}
}
// ----
// TypeError 5407: (278-286): Cannot implicitly convert component at position 0 from "function (string memory) external" to "function (string calldata) external".
// TypeError 5407: (329-337): Cannot implicitly convert component at position 0 from "function (string memory) external" to "function (string calldata) external".
// TypeError 5407: (278-286='(this.g)'): Cannot implicitly convert component at position 0 from "function (string memory) external" to "function (string calldata) external".
// TypeError 5407: (329-337='(this.h)'): Cannot implicitly convert component at position 0 from "function (string memory) external" to "function (string calldata) external".
@@ -1,4 +1,4 @@
pragma abicoder v2;
pragma abicoder v1;
// ----
// SyntaxError 3845: (34-53): ABI coder has already been selected for this source unit.
// SyntaxError 3845: (34-53='pragma abicoder v1;'): ABI coder has already been selected for this source unit.
@@ -1,4 +1,4 @@
pragma abicoder v1;
pragma abicoder v2;
// ----
// SyntaxError 3845: (20-39): ABI coder has already been selected for this source unit.
// SyntaxError 3845: (20-39='pragma abicoder v2;'): ABI coder has already been selected for this source unit.
@@ -6,4 +6,4 @@ contract C {
function f(S memory) public {}
}
// ----
// TypeError 4103: (132-140): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4103: (132-140='S memory'): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
@@ -5,4 +5,4 @@ contract C {
function f(S[2] memory) public {}
}
// ----
// TypeError 4103: (89-100): Internal type is not allowed for public or external functions.
// TypeError 4103: (89-100='S[2] memory'): Internal type is not allowed for public or external functions.
@@ -5,4 +5,4 @@ contract C {
function f(S memory) public {}
}
// ----
// TypeError 4103: (92-100): Internal type is not allowed for public or external functions.
// TypeError 4103: (92-100='S memory'): Internal type is not allowed for public or external functions.
@@ -5,4 +5,4 @@ contract C {
function f(S memory) public {}
}
// ----
// TypeError 4103: (103-111): Internal type is not allowed for public or external functions.
// TypeError 4103: (103-111='S memory'): Internal type is not allowed for public or external functions.
@@ -5,4 +5,4 @@ contract C {
function f(S memory) public {}
}
// ----
// TypeError 4103: (105-113): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4103: (105-113='S memory'): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
@@ -1,3 +1,3 @@
pragma abicoder something;
// ----
// SyntaxError 2745: (0-26): Expected either "pragma abicoder v1" or "pragma abicoder v2".
// SyntaxError 2745: (0-26='pragma abicoder something;'): Expected either "pragma abicoder v1" or "pragma abicoder v2".
@@ -1,4 +1,4 @@
pragma experimental ABIEncoderV2;
pragma abicoder v2;
// ----
// SyntaxError 3845: (34-53): ABI coder has already been selected for this source unit.
// SyntaxError 3845: (34-53='pragma abicoder v2;'): ABI coder has already been selected for this source unit.
@@ -1,4 +1,4 @@
pragma abicoder v1;
pragma abicoder v1;
// ----
// SyntaxError 3845: (20-39): ABI coder has already been selected for this source unit.
// SyntaxError 3845: (20-39='pragma abicoder v1;'): ABI coder has already been selected for this source unit.
@@ -18,4 +18,4 @@ contract Test {
}
}
// ----
// TypeError 2443: (B:91-100): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2443: (B:91-100='C.Item(5)'): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -18,4 +18,4 @@ contract Test {
}
}
// ----
// TypeError 2443: (B:119-129): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2443: (B:119-129='C.Item(50)'): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -20,4 +20,4 @@ contract Test {
}
}
// ----
// TypeError 2443: (B:166-175): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2443: (B:166-175='C.Item(5)'): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -14,4 +14,4 @@ contract D {
}
}
// ----
// TypeError 2428: (B:85-105): The type of return parameter 1, string[], is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:85-105='C(address(0x00)).f()'): The type of return parameter 1, string[], is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -18,4 +18,4 @@ contract Test {
}
}
// ----
// TypeError 2428: (B:90-112): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:90-112='C(address(0x00)).get()'): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -18,4 +18,4 @@ contract Test {
}
}
// ----
// TypeError 2428: (B:90-112): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:90-112='C(address(0x00)).get()'): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -17,4 +17,4 @@ contract Test {
}
}
// ----
// TypeError 2443: (B:94-104): The type of this parameter, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2443: (B:94-104='L.Item(42)'): The type of this parameter, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -20,4 +20,4 @@ contract D {
}
}
// ----
// TypeError 2428: (B:106-117): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:106-117='uint(1).f()'): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -18,4 +18,4 @@ contract Test {
}
}
// ----
// TypeError 2428: (B:90-97): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:90-97='L.get()'): The type of return parameter 1, struct L.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -14,4 +14,4 @@ import "A";
contract D is C {}
// ----
// TypeError 6594: (B:33-51): Contract "D" does not use ABI coder v2 but wants to inherit from a contract which uses types that require it. Use "pragma abicoder v2;" for the inheriting contract as well to enable the feature.
// TypeError 6594: (B:33-51='contract D is C {}'): Contract "D" does not use ABI coder v2 but wants to inherit from a contract which uses types that require it. Use "pragma abicoder v2;" for the inheriting contract as well to enable the feature.
@@ -14,4 +14,4 @@ import "A";
contract D is C {}
// ----
// TypeError 6594: (B:33-51): Contract "D" does not use ABI coder v2 but wants to inherit from a contract which uses types that require it. Use "pragma abicoder v2;" for the inheriting contract as well to enable the feature.
// TypeError 6594: (B:33-51='contract D is C {}'): Contract "D" does not use ABI coder v2 but wants to inherit from a contract which uses types that require it. Use "pragma abicoder v2;" for the inheriting contract as well to enable the feature.
@@ -10,5 +10,5 @@ contract C {
// ====
// EVMVersion: >=byzantium
// ----
// Warning 6321: (150-154): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 2072: (166-183): Unused local variable.
// Warning 6321: (150-154='bool'): Unnamed return variable can remain unassigned. Add an explicit return with value to all non-reverting code paths or name the variable.
// Warning 2072: (166-183='uint[][] memory x'): Unused local variable.
@@ -29,4 +29,4 @@ contract C is B {
{}
}
// ----
// TypeError 2428: (B:80-102): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:80-102='A(address(0x00)).get()'): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -30,4 +30,4 @@ contract C is B {
{}
}
// ----
// TypeError 2428: (B:80-102): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
// TypeError 2428: (B:80-102='A(address(0x00)).get()'): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.