aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/367_using_directive_for_missing_selftype.sol
blob: 3d9bc3fc361443764c1e921ae355a9e600979a3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
library B {
    function b() public {}
}

contract A {
    using B for bytes;

    function a() public {
        bytes memory x;
        x.b();
    }
}
// ----
// TypeError: (137-140): Member "b" not found or not visible after argument-dependent lookup in bytes memory.