mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE when a constant variable declaration forward references a struct
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
mapping(uint => uint) constant b = b;
|
||||
// ----
|
||||
// DeclarationError 3530: (0-36): The type contains a (nested) mapping and therefore cannot be a constant.
|
||||
// TypeError 9259: (0-36): Only constants of value type and byte arrays are implemented.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
struct S { uint x; }
|
||||
S constant s;
|
||||
// ----
|
||||
// TypeError 9259: (21-33): Constants of non-value type not yet implemented.
|
||||
// TypeError 9259: (21-33): Only constants of value type and byte arrays are implemented.
|
||||
|
||||
Reference in New Issue
Block a user