aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constructor/inconstructible_internal_constructor.sol
blob: 2511c751c508d59d55f404b4e3ac30dad29d3b73 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    constructor() internal {}
}
contract D {
    function f() public { C c = new C(); c; }
}
// ----
// TypeError: (84-89): Contract with internal constructor cannot be created directly.