2019-06-13 13:51:15 +00:00
|
|
|
contract C {
|
|
|
|
function f() external payable {}
|
|
|
|
function g(address a) external pure {
|
|
|
|
a.call.value(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
a.call{value: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
a.call.gas(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
a.call{gas: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
a.staticcall.gas(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
a.staticcall{gas: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
a.delegatecall.gas(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
a.delegatecall{gas: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
}
|
|
|
|
function h() external view {
|
|
|
|
this.f.value(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
this.f{value: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
this.f.gas(42);
|
2020-03-03 11:15:59 +00:00
|
|
|
this.f{gas: 42};
|
2019-06-13 13:51:15 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-03 11:15:59 +00:00
|
|
|
// ----
|
|
|
|
// Warning: (91-103): Using ".value(...)" is deprecated. Use "{value: ...}" instead.
|
|
|
|
// Warning: (132-142): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|
|
|
|
// Warning: (169-185): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|
|
|
|
// Warning: (218-236): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|
|
|
|
// Warning: (304-316): Using ".value(...)" is deprecated. Use "{value: ...}" instead.
|
|
|
|
// Warning: (345-355): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|