mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
326 B
Solidity
12 lines
326 B
Solidity
contract C {
|
|
constructor() { }
|
|
}
|
|
contract D {
|
|
function f() public returns (uint) {
|
|
(new C).value(2)();
|
|
return 2;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError: (99-112): Member "value" not found or not visible after argument-dependent lookup in function () returns (contract C) - did you forget the "payable" modifier?
|