solidity/test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol

10 lines
201 B
Solidity
Raw Normal View History

// This generated an invalid warning on m1 in some compiler versions.
contract A {
2020-06-23 12:14:24 +00:00
constructor() m1 { }
modifier m1 { _; }
}
contract B is A {
modifier m2 { _; }
2020-06-23 12:14:24 +00:00
constructor() A() m1 m2 { }
}