mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow calling base constructors without arguments.
This commit is contained in:
committed by
Alex Beregszaszi
parent
ef269bf40d
commit
7e5406dd89
+1
-1
@@ -1,4 +1,4 @@
|
||||
contract A { constructor() public { } }
|
||||
contract B is A { constructor() A public { } }
|
||||
// ----
|
||||
// Warning: (72-73): Modifier-style base constructor call without arguments.
|
||||
// DeclarationError: (72-73): Modifier-style base constructor call without arguments.
|
||||
|
||||
Reference in New Issue
Block a user