Debian Codegraph @

test-suite/bugs/bug_10189.v

raw
1 Definition foo : forall (x := unit) {y : nat}, nat := fun y => y.
2 Check foo (y := 3). (*We fail to get implicits in the type past a let-in*)
3 Definition foo' : forall (x : Set) {y : nat}, nat := fun _ y => y.
4 Check foo' unit (y := 3). (* It works with a function binder *)
5
6 Definition bar := let f {x} : nat -> nat := fun y => x in f (x := 3).
7 (* Adding bar : nat -> nat gives implicits-in-term warning *)
8 Fail Check bar (x := 3).
9 (* The implicits from the type of the local definition leak to the outer term *)