|
@@ -3315,7 +3315,7 @@ and type_array_decl ctx el with_type p =
|
|
let t = try
|
|
let t = try
|
|
unify_min_raise ctx el
|
|
unify_min_raise ctx el
|
|
with Error (Unify l,p) ->
|
|
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;
|
|
display_error ctx "Arrays of mixed types are only allowed if the type is forced to Array<Dynamic>" p;
|
|
raise (Error (Unify l, p))
|
|
raise (Error (Unify l, p))
|
|
end
|
|
end
|