Fix ICE when a constant variable declaration forward references a struct

This commit is contained in:
Marenz
2022-01-17 13:24:14 +01:00
parent 7b58afa94c
commit 0004ad8764
16 changed files with 25 additions and 31 deletions
+1 -5
View File
@@ -1110,11 +1110,7 @@ public:
u256 storageSize() const override { return underlyingType().storageSize(); }
unsigned storageBytes() const override { return underlyingType().storageBytes(); }
bool isValueType() const override
{
solAssert(underlyingType().isValueType(), "");
return true;
}
bool isValueType() const override { return true; }
bool nameable() const override
{
solAssert(underlyingType().nameable(), "");