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

15 lines
311 B
Solidity
Raw Normal View History

2019-11-14 11:48:15 +00:00
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.