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/363_non_payable_constructor.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/363_non_payable_constructor.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol index 5a6b7b11..4cd1fcae 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol @@ -1,5 +1,5 @@ contract C { - function C() { } + constructor() { } } contract D { function f() public returns (uint) { @@ -8,5 +8,4 @@ contract D { } } // ---- -// Warning: (17-33): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. -// TypeError: (98-111): Member "value" not found or not visible after argument-dependent lookup in function () returns (contract C) - did you forget the "payable" modifier? +// TypeError: (99-112): Member "value" not found or not visible after argument-dependent lookup in function () returns (contract C) - did you forget the "payable" modifier? |