solidity/test/libsolidity/syntaxTests/multiSource/one_source.sol

8 lines
235 B
Solidity
Raw Normal View History

==== Source: SourceName ====
contract A {
uint256 x;
function f() public pure { x = 42; }
}
// ----
2022-02-17 15:52:36 +00:00
// TypeError 8961: (SourceName:53-54): Function cannot be declared as pure because this expression (potentially) modifies the state.