diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-10 20:05:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 20:05:06 +0800 |
commit | 2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1 (patch) | |
tree | f92b9aa6f448523fca1730e7441f52d56a621e93 /test | |
parent | 0546a36acadee769b2f7ab6b86a1cf2e1da860ba (diff) | |
parent | 3eedbc6a9c60888dd967d6673a34511947da4aa1 (diff) | |
download | dexon-solidity-2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1.tar.gz dexon-solidity-2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1.tar.zst dexon-solidity-2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1.zip |
Merge pull request #3853 from ethereum/modifierStyleWithoutParentheses
Modifier style constructor calls without parentheses are an error.
Diffstat (limited to 'test')
2 files changed, 5 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/inheritance/allow_empty_duplicated_super_constructor_call.sol b/test/libsolidity/syntaxTests/inheritance/allow_empty_duplicated_super_constructor_call.sol index 1f580b1d..ce9d5f5f 100644 --- a/test/libsolidity/syntaxTests/inheritance/allow_empty_duplicated_super_constructor_call.sol +++ b/test/libsolidity/syntaxTests/inheritance/allow_empty_duplicated_super_constructor_call.sol @@ -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 { } } diff --git a/test/libsolidity/syntaxTests/inheritance/disallow_modifier_style_without_parentheses.sol b/test/libsolidity/syntaxTests/inheritance/disallow_modifier_style_without_parentheses.sol new file mode 100644 index 00000000..0c159a22 --- /dev/null +++ b/test/libsolidity/syntaxTests/inheritance/disallow_modifier_style_without_parentheses.sol @@ -0,0 +1,4 @@ +contract A { constructor() public { } } +contract B is A { constructor() A public { } } +// ---- +// Warning: Modifier-style base constructor call without arguments. |