浏览代码

[oops] lol

Simon Krajewski 6 年之前
父节点
当前提交
ec4948db8c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/typing/typerDisplay.ml

+ 2 - 2
src/typing/typerDisplay.ml

@@ -399,9 +399,9 @@ and display_expr ctx e_ast e dk with_type p =
 		begin match fst e_ast,e.eexpr with
 			| EField(e1,s),TField(e2,_) ->
 				display_fields e1 e2 (String.length s)
-			(* | EObjectDecl [(name,pn,_),(EConst (Ident "null"),pe)],_ when pe.pmin = -1 ->
+			| EObjectDecl [(name,pn,_),(EConst (Ident "null"),pe)],_ when pe.pmin = -1 ->
 				(* This is what the parser emits for #8651. Bit of a dodgy heuristic but should be fine. *)
-				raise_toplevel ctx dk with_type (name,pn) None *)
+				raise_toplevel ctx dk with_type (name,pn) None
 			| _ ->
 				if dk = DKDot then display_fields e_ast e 0
 				else begin