浏览代码

don't use global status var for newly created anon types (closes #6400)

Dan Korostelev 8 年之前
父节点
当前提交
29af75669d
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/typing/type.ml

+ 1 - 2
src/typing/type.ml

@@ -364,8 +364,7 @@ let mk_mono() = TMono (ref None)
 
 let rec t_dynamic = TDynamic t_dynamic
 
-let not_opened = ref Closed
-let mk_anon fl = TAnon { a_fields = fl; a_status = not_opened; }
+let mk_anon fl = TAnon { a_fields = fl; a_status = ref Closed; }
 
 (* We use this for display purposes because otherwise we never see the Dynamic type that
    is defined in StdTypes.hx. This is set each time a typer is created, but this is fine