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

11 lines
162 B
Solidity
Raw Normal View History

contract C {
2020-06-23 12:14:24 +00:00
constructor() payable { }
}
contract D {
function createC() public returns (C) {
C c = (new C){value: 1}();
return c;
}
}