Explorar o código

Dynamic target type allows mixed array content as well

Nicolas Cannasse %!s(int64=12) %!d(string=hai) anos
pai
achega
0159a9a7c7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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