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

10 lines
248 B
Solidity
Raw Normal View History

2018-03-16 11:45:12 +00:00
// This caused a segfault in an earlier version
contract C {
2020-06-23 12:14:24 +00:00
constructor() {}
2018-03-16 11:45:12 +00:00
}
contract D is C {
2020-06-23 12:14:24 +00:00
constructor() C(5) {}
2018-03-16 11:45:12 +00:00
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 2973: (120-124): Wrong argument count for modifier invocation: 1 arguments given but expected 0.