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

11 lines
169 B
Solidity
Raw Normal View History

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