Error: Function declared as view, but this expression (potentially) modifies the state and thus requires the default.
File (ErrorA.sol):
pragma ton-solidity >=0.38.2;
library A {
function calc(uint128 value) public pure returns (uint128) {
return value++;
}
}
contract B {
uint128 constant VAL = 1;
function make() external view {
A.calc(VAL);
}
}
Here is what I get:
File (ErrorA.sol):
As you can see there are:
Still, compiler shows error. Tested with 0.38.2.