mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
384 B
25 lines
384 B
using {f} for St;
|
|
struct St { uint field; }
|
|
|
|
|
|
function f(St storage self, uint8 v) view returns(uint){
|
|
return 0;
|
|
}
|
|
|
|
|
|
library Lib {
|
|
function f(St storage self, uint256 v) public view returns (uint) {
|
|
return 1;
|
|
}
|
|
|
|
}
|
|
|
|
contract C {
|
|
using Lib for St;
|
|
St st;
|
|
|
|
function libCall(uint16 v) public view returns(uint){
|
|
return st.f(v); // return 1
|
|
}
|
|
|
|
} |