Skip to content

Commit

Permalink
Known problem: Exhastieness checking for functions with multiple spec…
Browse files Browse the repository at this point in the history
… clases
  • Loading branch information
zuiderkwast committed Jan 15, 2020
1 parent 67cb818 commit beb5a77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/known_problems/should_pass/intersection_exhaustive.erl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-module(intersection_exhaustive).

-export([f/1]).

-spec f(a) -> b;
(b) -> a.
f(a) -> b;
f(b) -> a. % "The clause cannot be reached"

0 comments on commit beb5a77

Please sign in to comment.