test-suite/bugs/bug_3306.v
raw| 1 | |
| 2 | Inductive Foo(A : Type) : Prop := |
| 3 | foo: A -> Foo A. |
| 4 | |
| 5 | Arguments foo [A] _. |
| 6 | |
| 7 | Scheme Foo_elim := Induction for Foo Sort Prop. |
| 8 | |
| 9 | Goal forall (fn : Foo nat), { x: nat | foo x = fn }. |
| 10 | intro fn. |
| 11 | Fail induction fn as [n] using Foo_elim. (* should fail in a non-Prop context *) |
| 12 | Admitted. |