Error when using no parentheses in modifier-style constructor calls.

This commit is contained in:
Daniel Kirchner
2018-04-10 12:09:34 +02:00
parent b52614116e
commit 3eedbc6a9c
9 changed files with 52 additions and 21 deletions
@@ -1,3 +1,2 @@
contract A { constructor() public { } }
contract B1 is A { constructor() A() public { } }
contract B2 is A { constructor() A public { } }
contract B is A { constructor() A() public { } }
@@ -0,0 +1,4 @@
contract A { constructor() public { } }
contract B is A { constructor() A public { } }
// ----
// Warning: Modifier-style base constructor call without arguments.