diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-10 17:22:26 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-04-10 18:09:34 +0800 |
commit | 3eedbc6a9c60888dd967d6673a34511947da4aa1 (patch) | |
tree | 0a6e356f44df3763acb57327b34ae621f80cf068 /test/libsolidity | |
parent | b52614116e9c72d840b375b0bbb1c56a63df3680 (diff) | |
download | dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.gz dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.tar.zst dexon-solidity-3eedbc6a9c60888dd967d6673a34511947da4aa1.zip |
Error when using no parentheses in modifier-style constructor calls.
Diffstat (limited to 'test/libsolidity')
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. |