diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-01 18:52:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 18:52:57 +0800 |
commit | ef269bf40d3c6fc044c27654473353c556402b77 (patch) | |
tree | 4d0162665f6f185e368e0831359d336e8251e438 /test/libsolidity/syntaxTests/constructor | |
parent | 21888e246b771325ea55da39d7f335638da1a98e (diff) | |
parent | b800bfb02138f843538bca55a40d6a4e0d1be60f (diff) | |
download | dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar.gz dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar.bz2 dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar.lz dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar.xz dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.tar.zst dexon-solidity-ef269bf40d3c6fc044c27654473353c556402b77.zip |
Merge pull request #4321 from ethereum/contractConversion
[BREAKING] Disallow conversion between unrelated contract types.
Diffstat (limited to 'test/libsolidity/syntaxTests/constructor')
-rw-r--r-- | test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol b/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol index 2a199b3a..17cb701d 100644 --- a/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol +++ b/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol @@ -3,11 +3,11 @@ contract B { A a; constructor() public { - a = new A(this); + a = new A(address(this)); } } contract A { - constructor(address a) internal {} + constructor(address) internal {} } // ---- // TypeError: (141-146): Contract with internal constructor cannot be created directly. |