aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/262_bound_function_in_var.sol
blob: 09e357e64ee970fa3f4e1f85e270deb6dbac11c5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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) {
        var g = x.mul;
        return g({x: a});
    }
}
// ----
// Warning: (218-223): Use of the "var" keyword is deprecated.