Browse Source

check followed expected type for `t_dynamic` for array declarations so we do not miss `Null<Dynamic>`

Simon Krajewski 11 years ago
parent
commit
b63c8018df
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2982,7 +2982,7 @@ and type_expr ctx (e,p) (with_type:with_type) =
 					Some (get_iterable_param t)
 					Some (get_iterable_param t)
 				with Not_found ->
 				with Not_found ->
 					None)
 					None)
-			| _ ->
+			| t ->
 				if t == t_dynamic then Some t else None)
 				if t == t_dynamic then Some t else None)
 		| _ ->
 		| _ ->
 			None
 			None