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

11 lines
169 B
Solidity

contract C {
constructor() public payable { }
}
contract D {
function createC() public returns (C) {
C c = (new C){value: 1}();
return c;
}
}