aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/253_using_for_function_exists.sol
blob: 9e570805f8fda120d3e6e5abbec3f6b86bf21a77 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                 
library D { function double(uint self) public returns (uint) { return 2*self; } }
contract C {
    using D for uint;
    function f(uint a) public {
        a.double;
    }
}
// ----
// Warning: (12-79): Function state mutability can be restricted to pure
// Warning: (121-172): Function state mutability can be restricted to pure