Error on duplicated super constructor calls

This commit is contained in:
Federico Bond
2018-04-09 11:22:35 +02:00
committed by Daniel Kirchner
parent fe61435c27
commit 4e037281ac
7 changed files with 55 additions and 9 deletions
@@ -0,0 +1,4 @@
contract A { constructor(uint) public { } }
contract B is A(2) { constructor() A(3) public { } }
// ----
// DeclarationError: Duplicated super constructor call.
@@ -0,0 +1,4 @@
contract A { constructor() public { } }
contract B is A { constructor() A() public { } }
// ----
// DeclarationError: Duplicated super constructor call.