aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/255_using_for_function_on_struct.sol
blob: 2c3deb4cd71795f43f6f2fefd61140001d24ce02 (plain) (tree)
1
2
3
4
5
6
7
8







                                                                                                                     
library D { struct s { uint a; } function mul(s storage self, uint x) public returns (uint) { return self.a *= x; } }
contract C {
    using D for D.s;
    D.s x;
    function f(uint a) public returns (uint) {
        return x.mul(a);
    }
}