mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
270 B
Solidity
12 lines
270 B
Solidity
contract C {
|
|
constructor() {}
|
|
}
|
|
contract D {
|
|
function createC() public returns (C) {
|
|
C c = (new C).value(2)();
|
|
return c;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 8827: (107-120): Constructor for contract C must be payable for member "value" to be available.
|