solidity/test/libsolidity/syntaxTests/constructor/constructor_payable.sol
2020-07-07 12:16:18 +02:00

11 lines
162 B
Solidity

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