2019-06-13 13:51:15 +00:00
|
|
|
contract C {
|
|
|
|
function f() external view {}
|
|
|
|
function test(address a) external view returns (bool status) {
|
|
|
|
// This used to incorrectly raise an error about violating the view mutability.
|
|
|
|
(status,) = a.staticcall.gas(42)("");
|
2020-03-03 11:15:59 +00:00
|
|
|
(status,) = a.staticcall{gas: 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
|
|
|
}
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// EVMVersion: >=byzantium
|
|
|
|
// ----
|
2020-03-03 11:15:59 +00:00
|
|
|
// Warning: (207-223): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|
|
|
|
// Warning: (276-286): Using ".gas(...)" is deprecated. Use "{gas: ...}" instead.
|