test-suite/bugs/bug_21789.v
raw| 1 | Inductive sTrue : SProp := stt. |
| 2 | Set Primitive Projections. |
| 3 | Set Nonrecursive Elimination Schemes. |
| 4 | Record foo := { bar : sTrue }. |
| 5 | (* Error: |
| 6 | In environment |
| 7 | P : foo -> Type |
| 8 | Build_foo : forall bar : sTrue, P (Build_foo bar) |
| 9 | f : foo |
| 10 | The term "let f0 : foo := f in let bar := test.bar f0 in Build_foo bar" |
| 11 | has type "P (test.Build_foo (test.bar f))" while it is expected to have type |
| 12 | "P f".*) |