aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/257_using_for_by_name.sol
blob: b3eab987f4ec3837d3877cacf6161ed4105efb51 (plain) (blame)
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({x: a});
    }
}