aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/363_non_payable_constructor.sol
blob: 27381904798fe30d770376ac9d54dfb1b10c0223 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
            
                            







                                        
                                                                                                                                                                             
contract C {
    constructor() public { }
}
contract D {
    function f() public returns (uint) {
        (new C).value(2)();
        return 2;
    }
}
// ----
// TypeError: (106-119): Member "value" not found or not visible after argument-dependent lookup in function () returns (contract C) - did you forget the "payable" modifier?