Forráskód Böngészése

Dynamic target type allows mixed array content as well

Nicolas Cannasse 12 éve
szülő
commit
0159a9a7c7
1 módosított fájl, 1 hozzáadás és 1 törlés
  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