2019-06-13 13:51:15 +00:00
|
|
|
contract C {
|
|
|
|
function f(address a) external view returns (bool success) {
|
2020-03-03 11:15:59 +00:00
|
|
|
(success,) = a.call{gas: 42}("");
|
2019-06-13 13:51:15 +00:00
|
|
|
}
|
|
|
|
function h() external payable {}
|
|
|
|
function i() external view {
|
2020-03-03 11:15:59 +00:00
|
|
|
this.h{gas: 42}();
|
|
|
|
}
|
2019-06-13 13:51:15 +00:00
|
|
|
}
|
|
|
|
// ----
|
2022-02-17 15:52:36 +00:00
|
|
|
// TypeError 8961: (90-109): Function cannot be declared as view because this expression (potentially) modifies the state.
|
|
|
|
// TypeError 8961: (180-197): Function cannot be declared as view because this expression (potentially) modifies the state.
|