diff options
| author | Matthieu Sozeau | 2014-09-04 00:40:12 +0200 |
|---|---|---|
| committer | Matthieu Sozeau | 2014-09-04 01:13:33 +0200 |
| commit | c907f31fd8f4b12bf2d7df2078603dbe804475a2 (patch) | |
| tree | b75855bdeb6a2beff49eb95c2ba7c877696fe61a /test-suite | |
| parent | cd10b70637dea3cbba5785d163bc567a32a031a8 (diff) | |
Add test-suite file for Case derivation on primitive records.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/letproj.v | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/letproj.v b/test-suite/success/letproj.v new file mode 100644 index 0000000000..a183be6223 --- /dev/null +++ b/test-suite/success/letproj.v @@ -0,0 +1,9 @@ +Set Primitive Projections. +Set Record Elimination Schemes. +Record Foo (A : Type) := { bar : A -> A; baz : A }. + +Definition test (A : Type) (f : Foo A) := + let (x, y) := f in x. + +Scheme foo_case := Case for Foo Sort Type. + |
