mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
269 B
Solidity
15 lines
269 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
|