瀏覽代碼

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