aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/261_using_for_arbitrary_mismatch.sol
blob: b2b553507149fedfca5508ccae0261ecbc1dc7cb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
library D { function double(bytes32 self) public returns (uint) { return 2; } }
contract C {
    using D for *;
    function f(uint a) public returns (uint) {
        // Bound to a, but self type does not match.
        return a.double();
    }
}
// ----
// TypeError: (227-235): Member "double" not found or not visible after argument-dependent lookup in uint256.