소스 검색

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