solidity/test/libsolidity/syntaxTests/modifiers/constructor_call_invalid_arg_count.sol

10 lines
257 B
Solidity
Raw Normal View History

2018-03-16 11:45:12 +00:00
// This caused a segfault in an earlier version
contract C {
2018-04-11 15:58:53 +00:00
constructor() public {}
2018-03-16 11:45:12 +00:00
}
contract D is C {
2018-04-11 15:58:53 +00:00
constructor() C(5) public {}
2018-03-16 11:45:12 +00:00
}
// ----
2018-04-11 15:58:53 +00:00
// TypeError: (127-131): Wrong argument count for modifier invocation: 1 arguments given but expected 0.