aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-13 02:07:16 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-01 18:04:35 +0800
commitb800bfb02138f843538bca55a40d6a4e0d1be60f (patch)
tree4d0162665f6f185e368e0831359d336e8251e438 /test/libsolidity
parentc8232d9759458d5f6e1442533457d8529686eea7 (diff)
downloaddexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.gz
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.zst
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.zip
Fix tests regarding contract type conversion.
Diffstat (limited to 'test/libsolidity')
-rw-r--r--test/libsolidity/SolidityEndToEndTest.cpp2
-rw-r--r--test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol3
2 files changed, 3 insertions, 2 deletions
diff --git a/test/libsolidity/SolidityEndToEndTest.cpp b/test/libsolidity/SolidityEndToEndTest.cpp
index f52d270d..e9e7c93b 100644
--- a/test/libsolidity/SolidityEndToEndTest.cpp
+++ b/test/libsolidity/SolidityEndToEndTest.cpp
@@ -9428,7 +9428,7 @@ BOOST_AUTO_TEST_CASE(failed_create)
if (depth < 1024)
return this.stack(depth - 1);
else
- return f(0);
+ return address(f(0));
}
}
)";
diff --git a/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol b/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol
index ea2ec8f6..17cb701d 100644
--- a/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol
+++ b/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor_inverted.sol
@@ -7,6 +7,7 @@ contract B {
}
}
contract A {
- constructor(address) public {}
+ constructor(address) internal {}
}
// ----
+// TypeError: (141-146): Contract with internal constructor cannot be created directly.