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

11 lines
297 B
Solidity
Raw Normal View History

library L { function l() public {} }
contract test {
function f() public {
L x;
x.l();
}
}
// ----
2019-11-14 11:48:15 +00:00
// TypeError: (87-90): The type of a variable cannot be a library.
// TypeError: (100-103): Member "l" not found or not visible after argument-dependent lookup in library L.