solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/301_library_instances_cannot_be_used.sol

10 lines
229 B
Solidity

library L { function l() public {} }
contract test {
function f() public {
L x;
x.l();
}
}
// ----
// TypeError: (100-103): Member "l" not found or not visible after argument-dependent lookup in library L