diff options
author | chriseth <chris@ethereum.org> | 2018-06-29 06:18:22 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-01 19:28:27 +0800 |
commit | 061ea0cfc6b8a7a0950e9764876733391eac6b81 (patch) | |
tree | 06abd44acaab66882c32b189562e9c1cd6182b63 /test/libsolidity/syntaxTests | |
parent | 7e5406dd8953cb819c397221fa55e6fa390108ee (diff) | |
download | dexon-solidity-061ea0cfc6b8a7a0950e9764876733391eac6b81.tar.gz dexon-solidity-061ea0cfc6b8a7a0950e9764876733391eac6b81.tar.zst dexon-solidity-061ea0cfc6b8a7a0950e9764876733391eac6b81.zip |
Correctly determine whether base constructor is called without parentheses.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r-- | test/libsolidity/syntaxTests/inheritance/modifiers_in_constructor_context.sol | 9 |
1 files changed, 9 insertions, 0 deletions
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 { } +} |