Remove InternalCompilerError on abstract contract instantiation.

This commit is contained in:
Alexander Arlt
2019-11-01 14:54:47 -05:00
parent cd3ad73b5a
commit c908c16acd
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,12 @@
abstract contract AbstractContract {
constructor() public { }
function utterance() public returns (bytes32) { return "miaow"; }
}
contract Test {
function create() public {
AbstractContract ac = new AbstractContract();
}
}
// ----
// TypeError: (215-235): Cannot instantiate an abstract contract.