2020-10-06 14:32:05 +00:00
|
|
|
==== Source: C ====
|
|
|
|
import "X";
|
|
|
|
import "V1A";
|
|
|
|
import "V2A";
|
|
|
|
import "V1B";
|
|
|
|
|
|
|
|
contract C is V1A, V2A, V1B {
|
|
|
|
function foo()
|
|
|
|
public
|
|
|
|
modV1A
|
|
|
|
modV2A // There should be no error for modV2A (it uses ABIEncoderV2)
|
|
|
|
modV1B
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: V1A ====
|
|
|
|
import "X";
|
|
|
|
|
|
|
|
contract V1A {
|
|
|
|
modifier modV1A() {
|
|
|
|
_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: V1B ====
|
|
|
|
import "X";
|
|
|
|
|
|
|
|
contract V1B {
|
|
|
|
modifier modV1B() {
|
|
|
|
_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: V2A ====
|
2020-11-23 18:06:44 +00:00
|
|
|
pragma abicoder v2;
|
2020-10-06 14:32:05 +00:00
|
|
|
import "X";
|
|
|
|
|
|
|
|
contract V2A {
|
|
|
|
modifier modV2A() {
|
|
|
|
X(0x00).get();
|
|
|
|
_;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
==== Source: X ====
|
2020-11-23 18:06:44 +00:00
|
|
|
pragma abicoder v2;
|
2020-10-06 14:32:05 +00:00
|
|
|
|
|
|
|
struct Data {
|
|
|
|
bool flag;
|
|
|
|
}
|
|
|
|
|
|
|
|
contract X {
|
|
|
|
function get() public view returns (Data memory) {}
|
|
|
|
}
|
|
|
|
// ----
|