solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/typeChecking/library_instances.sol

15 lines
326 B
Solidity

library X { }
contract Y {
X abc;
function foo(X param) private view
{
X ofg;
ofg = abc;
}
}
// ----
// TypeError 1273: (29-34): The type of a variable cannot be a library.
// TypeError 1273: (50-57): The type of a variable cannot be a library.
// TypeError 1273: (77-82): The type of a variable cannot be a library.