aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/inheritance/base_arguments_empty_parentheses.sol
blob: 6aacc95ea111693b5e6ecb2d65f6783fb6c78f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
contract Base {
  constructor(uint) public {}
}
contract Base2 {
  constructor(uint, uint) public {}
}
contract Derived is Base(2) { }
contract Derived2 is Base(), Derived() { }
contract Derived3 is Base2(2,2) { }
contract Derived4 is Base2(2), Derived() { }
// ----
// TypeError: (156-162): Wrong argument count for constructor call: 0 arguments given but expected 1.
// TypeError: (235-243): Wrong argument count for constructor call: 1 arguments given but expected 2.