Преглед изворни кода

Dynamic target type allows mixed array content as well

Nicolas Cannasse пре 12 година
родитељ
комит
0159a9a7c7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2140,7 +2140,7 @@ and type_expr ctx (e,p) (with_type:with_type) =
 				| TMono _ -> None
 				| _ -> Some tp)
 			| _ ->
-				None)
+				if t == t_dynamic then Some t else None)
 		| _ ->
 			None
 		) in