mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
439 B
Solidity
11 lines
439 B
Solidity
contract Base {
|
|
constructor(uint, uint) public {}
|
|
}
|
|
contract Derived is Base(2) { }
|
|
contract Derived2 is Base {
|
|
constructor() Base(2) public { }
|
|
}
|
|
// ----
|
|
// TypeError 7927: (74-81): Wrong argument count for constructor call: 1 arguments given but expected 2. Remove parentheses if you do not want to provide arguments here.
|
|
// TypeError 2973: (130-137): Wrong argument count for modifier invocation: 1 arguments given but expected 2.
|