mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow libraries as mapping keys.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
library L {}
|
||||
contract C { mapping(L => bool) i; }
|
||||
// ----
|
||||
// TypeError: (34-35): Library types cannot be used as mapping keys.
|
||||
Reference in New Issue
Block a user