diff options
| author | Maxime Dénès | 2019-04-04 00:28:15 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2019-04-05 21:16:14 +0200 |
| commit | 44a669e591ee00bcea65b229429dcb5d4d3515ec (patch) | |
| tree | d3b631c15fef018d8ca87fe4db92f92bc51d3e71 /test-suite | |
| parent | 73e7bbab4ff6120318ec7b90e4971bfafd09cfb5 (diff) | |
[native compiler] Fix critical bug with primitive projections
Since e1e7888, stuck projections were not computed correctly.
Fixes #9684
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_9684.v | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_9684.v b/test-suite/bugs/closed/bug_9684.v new file mode 100644 index 0000000000..436a00585b --- /dev/null +++ b/test-suite/bugs/closed/bug_9684.v @@ -0,0 +1,19 @@ +Set Primitive Projections. + +Record foo := mkFoo { proj1 : bool; proj2 : bool }. + +Definition x := mkFoo true false. +Definition proj x := proj2 x. + +Lemma oops : proj = fun x => proj1 x. +Proof. Fail native_compute; reflexivity. Abort. + +(* +Lemma bad : False. +assert (proj1 x = proj x). + rewrite oops; reflexivity. +discriminate. +Qed. + +Print Assumptions bad. +*) |
