Fix tests regarding contract type conversion.

This commit is contained in:
chriseth
2018-08-01 11:04:35 +01:00
committed by Alex Beregszaszi
parent c8232d9759
commit b800bfb021
18 changed files with 37 additions and 36 deletions
+1 -1
View File
@@ -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));
}
}
)";
@@ -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.