solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/367_using_directive_for_missing_selftype.sol

15 lines
275 B
Solidity
Raw Normal View History

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