浏览代码

minor bugfix with haxe.rtti.Generic

Nicolas Cannasse 15 年之前
父节点
当前提交
e02d2ff66b
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      codegen.ml

+ 1 - 0
codegen.ml

@@ -312,6 +312,7 @@ let build_instance ctx mtype p =
 					unify_raise ctx (build_generic ctx c p pl) t p;
 					t
 				) in
+				ctx.delays := [fun() -> ignore ((!r)())] :: !(ctx.delays);
 				TLazy r
 			| _ ->
 				TInst (c,pl)