forked from idris-lang/Idris2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ test ] Add issue#1988 to the test suite
This appears to be fixed now, presumably thanks to PR#3108 or similar. Closes idris-lang#1988
- Loading branch information
1 parent
d7d4c9c
commit c7a4fbe
Showing
3 changed files
with
24 additions
and
0 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,14 @@ | ||
module Issue1988 | ||
|
||
data D : Type where Abs : (D -> Void) -> D | ||
|
||
app : D -> D -> Void | ||
app (Abs f) d = f d | ||
|
||
omega : D | ||
omega = Abs (\x => app x x) | ||
|
||
total | ||
Omega : Void | ||
Omega = app omega omega | ||
|
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,7 @@ | ||
1/1: Building Issue1988 (Issue1988.idr) | ||
Error: Omega is not total, possibly not terminating due to function Issue1988.Abs being reachable via Issue1988.omega -> Issue1988.Abs | ||
|
||
Issue1988:11:1--12:13 | ||
11 | total | ||
12 | Omega : Void | ||
|
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,3 @@ | ||
. ../../../testutils.sh | ||
|
||
idris2 --check Issue1988.idr |