mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #12966 from a3d4/fix-ice-structtype-nativemembers
Fix ICE caused by an immutable struct with mapping
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
contract Contract {
|
||||
struct S {
|
||||
int k;
|
||||
}
|
||||
|
||||
S immutable s;
|
||||
}
|
||||
// ----
|
||||
// TypeError 6377: (61-74): Immutable variables cannot have a non-value type.
|
||||
@@ -0,0 +1,9 @@
|
||||
contract Contract {
|
||||
struct S {
|
||||
mapping(uint => address) map;
|
||||
}
|
||||
|
||||
S immutable s;
|
||||
}
|
||||
// ----
|
||||
// TypeError 6377: (84-97): Immutable variables cannot have a non-value type.
|
||||
Reference in New Issue
Block a user