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/462_callable_crash.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/462_callable_crash.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol index 94e81de6..188d00e0 100644 --- a/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol @@ -1,10 +1,9 @@ contract C { struct S { uint a; bool x; } S public s; - function C() public { + constructor() public { 3({a: 1, x: true}); } } // ---- -// Warning: (66-121): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead. -// TypeError: (96-114): Type is not callable +// TypeError: (97-115): Type is not callable |