Browse Source

allowed allocation of math arrays

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6847 8c9fc860-2736-0410-a75d-ab315db34111
felixf 9 years ago
parent
commit
883b5b7f36
1 changed files with 1 additions and 0 deletions
  1. 1 0
      source/FoxSemanticChecker.Mod

+ 1 - 0
source/FoxSemanticChecker.Mod

@@ -5188,6 +5188,7 @@ TYPE
 						IF type0 IS SyntaxTree.PointerType THEN
 							type0 := type0(SyntaxTree.PointerType).pointerBase.resolved;
 						ELSIF type0 IS SyntaxTree.CellType THEN
+						ELSIF type0 IS SyntaxTree.MathArrayType THEN
 						ELSE
 							Error(position, Diagnostics.Invalid, "forbidden new on value type");
 						END;