solidity/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor.sol

9 lines
177 B
Solidity
Raw Normal View History

2020-06-23 12:14:24 +00:00
abstract contract C {
constructor() {}
2018-04-17 09:39:40 +00:00
}
contract D {
function f() public { C c = new C(); c; }
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 4614: (84-89): Cannot instantiate an abstract contract.