Skip to content

Commit 07c9976

Browse files
jwatzmansgolemon
authored andcommitted
Fix another assert crash
Followup to D1246487. Reviewed By: @gabelevi Differential Revision: D1252520
1 parent a8c66db commit 07c9976

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

hphp/hack/src/typing/typing.ml

+2-4
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,8 @@ and anon_bind_param params env (param_name, ty as pname_ty) =
10241024
match !params with
10251025
| [] ->
10261026
(* This code cannot be executed normally, because the arity is wrong
1027-
* and it should have been caught earlier. But in silent-mode, we
1028-
* tolerate it, we bind as many parameters as we can and carry on.
1029-
*)
1030-
assert !is_silent_mode;
1027+
* and it will error later. Bind as many parameters as we can and carry
1028+
* on. *)
10311029
env
10321030
| param :: paraml ->
10331031
params := paraml;

0 commit comments

Comments
 (0)