Skip to content

Commit

Permalink
[ test ] Add issue#1988 to the test suite
Browse files Browse the repository at this point in the history
This appears to be fixed now, presumably thanks to PR#3108 or similar.

Closes idris-lang#1988
  • Loading branch information
CodingCellist committed Mar 18, 2024
1 parent d7d4c9c commit c7a4fbe
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/idris2/total/total024/Issue1988.idr
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

7 changes: 7 additions & 0 deletions tests/idris2/total/total024/expected
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

3 changes: 3 additions & 0 deletions tests/idris2/total/total024/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
. ../../../testutils.sh

idris2 --check Issue1988.idr

0 comments on commit c7a4fbe

Please sign in to comment.