-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Milestone
Description
Elixir and Erlang/OTP versions
Elixir v1.20-rc
Operating system
All
Current behavior
This test currently fails:
test "accepts a subtype" do
# This is a regression that happens because stacktrace may be
# either three-element or four-element tuples, and it was failing
# when we tried to access the fourth element
assert typecheck!(
try do
raise "oops"
rescue
_ ->
[{__MODULE__, fun, arity, info} | _] = __STACKTRACE__
{fun, arity, length(info)}
end
) == tuple([atom(), integer(), integer()])
endExpected behavior
In order to fix this we need to track the first element of the list within the `descr .