From c8232d9759458d5f6e1442533457d8529686eea7 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 19 Jun 2018 21:32:03 +0200 Subject: Disallow conversion between unrelated contract types. --- test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/libsolidity/syntaxTests/parsing/constructor_allowed_this.sol') 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(); } } -- cgit v1.2.3