solidity/test/libsolidity/smtCheckerTests/functions/library_after_contract.sol
2020-03-11 16:29:07 +01:00

19 lines
360 B
Solidity

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: (131-190): Function state mutability can be restricted to pure
// Warning: (86-87): Assertion checker does not yet implement type type(library L)