diff options
author | Erik Kundt <bitshift@posteo.org> | 2018-06-27 20:00:13 +0800 |
---|---|---|
committer | Erik Kundt <bitshift@posteo.org> | 2018-06-29 17:27:01 +0800 |
commit | 1346b4407f05335a039c6b71ccceebd7878fd70a (patch) | |
tree | 05fcf046c6cdea0fa06ce4aebab6de8c1249206e /test/libsolidity/syntaxTests/parsing | |
parent | 12c4eb769762d55a71ba05cf1b74b99797026f51 (diff) | |
download | dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.gz dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.zst dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.zip |
Updates syntax tests to new constructor syntax.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol | 5 | ||||
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations_in_expressions.sol | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol b/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol index 4c4a1217..602c26ed 100644 --- a/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol +++ b/test/libsolidity/syntaxTests/parsing/enum_valid_declaration.sol @@ -1,10 +1,9 @@ contract c { enum validEnum { Value1, Value2, Value3, Value4 } - function c() { + constructor() { a = validEnum.Value3; } validEnum a; } // ---- -// Warning: (71-121): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. -// Warning: (71-121): No visibility specified. Defaulting to "public". +// Warning: (71-122): No visibility specified. Defaulting to "public". diff --git a/test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations_in_expressions.sol b/test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations_in_expressions.sol index d2cdc875..e0f49fbf 100644 --- a/test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations_in_expressions.sol +++ b/test/libsolidity/syntaxTests/parsing/literal_constants_with_ether_subdenominations_in_expressions.sol @@ -1,10 +1,9 @@ contract c { - function c () + constructor() { a = 1 wei * 100 wei + 7 szabo - 3; } uint256 a; } // ---- -// Warning: (17-86): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. // Warning: (17-86): No visibility specified. Defaulting to "public". |