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/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol | |
parent | 12c4eb769762d55a71ba05cf1b74b99797026f51 (diff) | |
download | dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.gz dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.bz2 dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.lz dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.xz dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.tar.zst dexon-solidity-1346b4407f05335a039c6b71ccceebd7878fd70a.zip |
Updates syntax tests to new constructor syntax.
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol index 2f3a4cdc..2639decf 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/129_int_to_enum_explicit_conversion_is_okay.sol @@ -1,6 +1,6 @@ contract test { enum ActionChoices { GoLeft, GoRight, GoStraight, Sit } - function test() public { + constructor() public { a = 2; b = ActionChoices(a); } @@ -8,4 +8,3 @@ contract test { ActionChoices b; } // ---- -// Warning: (80-155): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. |