solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/367_using_directive_for_missing_selftype.sol
2018-07-16 16:11:39 +01:00

15 lines
270 B
Solidity

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.