mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow inline arrays of mapping type.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
contract C {
|
||||
mapping(int => int) a;
|
||||
function f() public {
|
||||
[a];
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (66-69): Type mapping(int256 => int256) is only valid in storage.
|
||||
Reference in New Issue
Block a user