solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/typeChecking/library_instances.sol
2019-11-14 13:20:31 +01:00

15 lines
311 B
Solidity

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