forked from josefs/Gradualizer
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
should_fail/intersection_with_any - one more example (josefs#305)
- Loading branch information
1 parent
f327b0b
commit df3f352
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-module(intersection_with_any). | ||
|
||
-export([intersection_using_constraints/1]). | ||
|
||
%% X :: integer() & any() by the constraints | ||
-spec intersection_using_constraints(X) -> 5 when X :: integer(), X :: any(). | ||
intersection_using_constraints(X) -> | ||
% X :: integer() & any() at this point, | ||
% which should be compatible with X :: 5 | ||
X. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters