Skip to content

Commit

Permalink
Better test case for erasing holes
Browse files Browse the repository at this point in the history
  • Loading branch information
timsueberkrueb committed Jan 5, 2025
1 parent bc374ba commit 22404b4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 6 additions & 1 deletion test/suites/success/038-erase-hole.ir.expected
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
let foo { MkFoo(Unit) }
use "../../../std/data/list.pol"
use "../../../std/data/nat.pol"

let foo(a) { Nil }

let bar { foo(<ZST>) }
10 changes: 5 additions & 5 deletions test/suites/success/038-erase-hole.pol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
data Top { Unit }
use "../../../std/data/list.pol"
use "../../../std/data/nat.pol"

data Foo(a : ?) {
MkFoo(a: Type, x: a): Foo(a)
}
-- | FIXME: At the moment, a is not erased.
let foo(a: _) : List(a) { Nil(a) }

let foo: Foo(Top) { MkFoo(Top, Unit) }
let bar: List(Nat) { foo(Nat) }

0 comments on commit 22404b4

Please sign in to comment.