mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
15 lines
326 B
Solidity
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.
|