solidity/test/libsolidity/syntaxTests/viewPureChecker/call_internal_functions_fail.sol
2018-06-06 15:41:41 +01:00

8 lines
312 B
Solidity

contract C {
function f() pure public { g(); }
function g() view public {}
}
// ----
// TypeError: (44-47): Function declared as pure, but this expression (potentially) reads from the environment or state and thus requires "view".
// Warning: (55-82): Function state mutability can be restricted to pure