diff options
author | Eric Meadows-Jönsson <eric.meadows.jonsson@gmail.com> | 2020-10-28 19:29:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-28 19:29:22 +0100 |
commit | c159728ae0a8fcb75947fa8151fe4f4acaf2dc21 (patch) | |
tree | 589646e399adbe3cfadea3706fed49d9585e75c8 | |
parent | d6e1f250c189604f88db27351178be754f8da901 (diff) | |
download | elixir-emj/expected-type.tar.gz |
Update lib/elixir/lib/module/types/expr.exemj/expected-type
Co-authored-by: José Valim <jose.valim@dashbit.co>
-rw-r--r-- | lib/elixir/lib/module/types/expr.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elixir/lib/module/types/expr.ex b/lib/elixir/lib/module/types/expr.ex index 87b700b2e..20e707cb0 100644 --- a/lib/elixir/lib/module/types/expr.ex +++ b/lib/elixir/lib/module/types/expr.ex @@ -205,7 +205,7 @@ defmodule Module.Types.Expr do # (expr; expr) def of_expr({:__block__, _meta, exprs}, expected, stack, context) do - expected_types = for(_ <- 1..(length(exprs) - 1), do: :dynamic) ++ [expected] + expected_types = List.duplicate(:dynamic, length(exprs) - 1) ++ [expected] result = map_reduce_ok(Enum.zip(exprs, expected_types), context, fn {expr, expected}, context -> |