blob: 45a0770f35679f55e89aae37ee32b4df812f90f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
contract Base {
constructor(uint, uint) public {}
}
contract Derived is Base(2) { }
contract Derived2 is Base {
constructor() Base(2) public { }
}
// ----
// TypeError: Wrong argument count for constructor call: 1 arguments given but expected 2.
// TypeError: Wrong argument count for modifier invocation: 1 arguments given but expected 2.
|