Skip to content

Commit

Permalink
Add regression test for gyson#34
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Bärenz committed Dec 26, 2020
1 parent 6530dfd commit df369f5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/ex_type/regression_34_test_case.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule Regression34TestCase do
@spec foo(:hi) :: :ok

def foo(_) do
raise "Oh noez"
rescue
_ -> :ok
end

@spec bar(any()) :: [:foo]

def bar(_) do
Enum.map([:foo], fn x -> x end)
end
end

0 comments on commit df369f5

Please sign in to comment.