mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Error on duplicated super constructor calls
This commit is contained in:
committed by
Daniel Kirchner
parent
fe61435c27
commit
4e037281ac
@@ -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.
|
||||
Reference in New Issue
Block a user