solidity/test/libsolidity/syntaxTests/abiEncoder/v1_modifier_overriding_v2_modifier.sol

31 lines
435 B
Solidity

==== Source: A ====
pragma abicoder v2;
struct Data {
bool flag;
}
contract A {
function get() public view returns (Data memory) {}
}
contract B {
modifier validate() virtual {
A(address(0x00)).get();
_;
}
}
==== Source: B ====
pragma abicoder v1;
import "A";
contract C is B {
function foo() public pure validate {}
modifier validate() override {
_;
}
}
// ----