浏览代码

actually apply class parameters to super class parameters

Simon Krajewski 11 年之前
父节点
当前提交
d0dba7cbd7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      type.ml

+ 3 - 3
type.ml

@@ -646,9 +646,9 @@ let rec raw_class_field build_type c tl i =
 		match c.cl_super with
 		| None ->
 			raise Not_found
-		| Some (c,tl) ->
-			let c2 , t , f = raw_class_field build_type c tl i in
-			c2, apply_params c.cl_params tl t , f
+		| Some (csup,tl2) ->
+			let c2 , t , f = raw_class_field build_type csup (List.map (apply_params c.cl_params tl) tl2) i in
+			c2, apply_params csup.cl_params tl2 t , f
 	with Not_found ->
 		match c.cl_kind with
 		| KTypeParameter tl ->