浏览代码

Resolved problem with cell inheritance when CellsAreObjects is not specified.

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@6570 8c9fc860-2736-0410-a75d-ab315db34111
felixf 9 年之前
父节点
当前提交
3652015eb1
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      source/FoxSemanticChecker.Mod

+ 3 - 1
source/FoxSemanticChecker.Mod

@@ -1068,6 +1068,8 @@ TYPE
 					ELSE
 						x.SetBaseType(ResolveType(x.baseType));
 					END;
+				ELSE
+					x.SetBaseType(ResolveType(x.baseType));
 				END;
 				
 				IF recordBase = NIL THEN numberMethods := 0
@@ -8114,7 +8116,7 @@ TYPE
 			VAR baseType: SyntaxTree.Type; property, prop: SyntaxTree.Property; variable: SyntaxTree.Variable;
 			BEGIN
 				IF type.baseType # NIL THEN 
-					baseType := type.baseType.resolved; 
+					baseType := type.baseType.resolved;
 					IF baseType IS SyntaxTree.PointerType THEN
 						baseType := baseType(SyntaxTree.PointerType).pointerBase.resolved;
 					END;