diff options
author | chriseth <chris@ethereum.org> | 2018-06-20 03:32:03 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-08-01 18:04:35 +0800 |
commit | c8232d9759458d5f6e1442533457d8529686eea7 (patch) | |
tree | cb1d8f4876b4984213134ad56ff5fb15db867d57 /test/libsolidity/syntaxTests/parsing | |
parent | 21888e246b771325ea55da39d7f335638da1a98e (diff) | |
download | dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar.gz dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar.bz2 dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar.lz dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar.xz dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.tar.zst dexon-solidity-c8232d9759458d5f6e1442533457d8529686eea7.zip |
Disallow conversion between unrelated contract types.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing')
-rw-r--r-- | test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol b/test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol index 9f714aea..b66253e4 100644 --- a/test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol +++ b/test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol @@ -3,9 +3,9 @@ contract A { } } contract B { - constructor(address) public { + constructor(C) public { } - function b(address) public returns (A) { + function b(C) public returns (A) { return new A(); } } |