Fix crash for TypeName[k].

This commit is contained in:
chriseth
2016-09-15 18:16:34 +02:00
parent 6a80511ffb
commit 031fd568cc
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -1438,7 +1438,7 @@ bool TypeChecker::visit(IndexAccess const& _access)
length->literalValue(nullptr)
));
else
typeError(index->location(), "Integer constant expected.");
fatalTypeError(index->location(), "Integer constant expected.");
}
break;
}