solidity/test/libsolidity/smtCheckerTests/functions/library_after_contract.sol

18 lines
282 B
Solidity
Raw Normal View History

2020-02-12 02:21:42 +00:00
pragma experimental SMTChecker;
contract C {
function g(uint y) public {
uint z = L.f(y);
assert(z == y);
}
}
library L {
function f(uint x) internal returns (uint) {
return x;
}
}
// ----
// Warning 2018: (131-190): Function state mutability can be restricted to pure