浏览代码

don't whine about arrays of mixed types in display mode (closes #5972)

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

+ 1 - 1
src/typing/typer.ml

@@ -3315,7 +3315,7 @@ and type_array_decl ctx el with_type p =
 		let t = try
 			unify_min_raise ctx el
 		with Error (Unify l,p) ->
-			if ctx.untyped then t_dynamic else begin
+			if ctx.untyped || ctx.com.display.dms_error_policy = EPIgnore then t_dynamic else begin
 				display_error ctx "Arrays of mixed types are only allowed if the type is forced to Array<Dynamic>" p;
 				raise (Error (Unify l, p))
 			end