solidity/test/libsolidity/syntaxTests/constructor/constructor_payable.sol
2021-04-20 17:38:29 +02:00

12 lines
170 B
Solidity

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