Test updates after disallowing Integer -> Contract conversion

This commit is contained in:
hrkrshnn
2020-12-03 17:53:00 +01:00
parent 40244c5469
commit 9e5d7b9910
39 changed files with 85 additions and 87 deletions
@@ -13,8 +13,8 @@ import "A";
contract Test {
function foo() public view {
C(0x00).set({_item: C.Item(50), _z: false, _y: "abc", _x: 30});
C(address(0x00)).set({_item: C.Item(50), _z: false, _y: "abc", _x: 30});
}
}
// ----
// TypeError 2443: (B:90-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:99-109): The type of this parameter, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -9,8 +9,8 @@ import "A";
contract D {
function g() public view {
C(0x00).f();
C(address(0x00)).f();
}
}
// ----
// TypeError 2428: (B:65-76): 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:65-85): The type of return parameter 1, string[], is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -13,8 +13,8 @@ import "A";
contract Test {
function foo() public view {
C(0x00).get();
C(address(0x00)).get();
}
}
// ----
// TypeError 2428: (B:70-83): 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:70-92): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -13,8 +13,8 @@ import "A";
contract Test {
function foo() public view {
C(0x00).get();
C(address(0x00)).get();
}
}
// ----
// TypeError 2428: (B:70-83): 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:70-92): The type of return parameter 1, struct C.Item, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -11,7 +11,7 @@ contract A {
contract B {
modifier validate() {
A(0x00).get();
A(address(0x00)).get();
_;
}
}
@@ -11,11 +11,11 @@ contract A {
contract B {
constructor() validate {
A(0x00).get();
A(address(0x00)).get();
}
modifier validate() {
A(0x00).get();
A(address(0x00)).get();
_;
}
}
@@ -11,11 +11,11 @@ contract A {
contract B {
constructor() {
A(0x00).get();
A(address(0x00)).get();
}
function foo() public view {
A(0x00).get();
A(address(0x00)).get();
}
}
==== Source: B ====
@@ -11,7 +11,7 @@ contract A {
contract B {
modifier validate() virtual {
A(0x00).get();
A(address(0x00)).get();
_;
}
}
@@ -35,7 +35,7 @@ import "X";
contract V2A {
modifier modV2A() {
X(0x00).get();
X(address(0x00)).get();
_;
}
}
@@ -11,7 +11,7 @@ import "A";
contract D {
function g() public view {
C(0x00).f();
C(address(0x00)).f();
}
}
// ----
@@ -15,7 +15,7 @@ import "A";
contract Test {
function foo() public view {
C(0x00).get();
C(address(0x00)).get();
}
}
// ----
@@ -15,7 +15,7 @@ import "A";
contract Test {
function foo() public view {
C(0x00).get();
C(address(0x00)).get();
}
}
// ----
@@ -13,7 +13,7 @@ import "A";
contract B {
modifier validate() {
A(0x00).get();
A(address(0x00)).get();
_;
}
}
@@ -27,4 +27,4 @@ contract C is B {
{}
}
// ----
// TypeError 2428: (B:60-73): 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:60-82): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.
@@ -13,7 +13,7 @@ import "A";
contract B {
modifier validate() {
A(0x00).get();
A(address(0x00)).get();
_;
}
}
@@ -29,4 +29,4 @@ contract C is B {
{}
}
// ----
// TypeError 2428: (B:60-73): 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:60-82): The type of return parameter 1, struct Data, is only supported in ABI coder v2. Use "pragma abicoder v2;" to enable the feature.