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

10 lines
230 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.