From 061ea0cfc6b8a7a0950e9764876733391eac6b81 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 29 Jun 2018 00:18:22 +0200 Subject: Correctly determine whether base constructor is called without parentheses. --- .../syntaxTests/inheritance/modifiers_in_constructor_context.sol | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol (limited to 'test/libsolidity/syntaxTests/inheritance') diff --git a/test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol b/test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol new file mode 100644 index 00000000..d8ce0e48 --- /dev/null +++ b/test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol @@ -0,0 +1,9 @@ +// This generated an invalid warning on m1 in some compiler versions. +contract A { + constructor() m1 public { } + modifier m1 { _; } +} +contract B is A { + modifier m2 { _; } + constructor() A() m1 m2 public { } +} -- cgit