solidity/test/libsolidity/syntaxTests/types/mapping/library_mapping.sol

5 lines
127 B
Solidity
Raw Normal View History

2020-02-06 08:08:28 +00:00
library L {}
contract C { mapping(L => bool) i; }
// ----
// TypeError: (34-35): Library types cannot be used as mapping keys.