Disallow calling base constructors without arguments.

This commit is contained in:
chriseth
2018-08-01 12:28:27 +01:00
committed by Alex Beregszaszi
parent ef269bf40d
commit 7e5406dd89
3 changed files with 6 additions and 15 deletions
@@ -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.