浏览代码

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 年之前
父节点
当前提交
883b5b7f36
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;