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

17 lines
312 B
Solidity

contract A1 {}
contract B1 is A1 { constructor() payable {} }
contract A2 { constructor() {} }
contract B2 is A2 { constructor() payable {} }
contract B3 { constructor() payable {} }
contract C {
function f() public payable {
new B1{value: 10}();
new B2{value: 10}();
new B3{value: 10}();
}
}
// ----