solidity/test/libsolidity/syntaxTests/lvalues/library_mapping.sol

8 lines
188 B
Solidity
Raw Normal View History

library L {
function f(mapping(uint=>uint) storage x, mapping(uint=>uint) storage y) external {
x = y;
}
}
// ----
// TypeError: (108-109): Mappings cannot be assigned to.