diff options
author | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2018-03-30 15:59:00 +0200 |
---|---|---|
committer | Gaëtan Gilbert <gaetan.gilbert@skyskimmer.net> | 2018-03-30 17:14:13 +0200 |
commit | 47abea3e05021450743756264c392ec5dc07b97c (patch) | |
tree | 3cfdcc4d9597aa9e98caca8ad14497019af03686 /test-suite/output/Projections.v | |
parent | c0eedb5bdcb815132f404e19d6bf59730ae6e2df (diff) |
Fix #6257: anomaly with Printing Projections and Context.
Constrextern.explicitize expected that if implicits were declared they
would be declared at least up to the principal argument of the
projection, but Context/discharge of implicits does not preserve this.
Note the anomaly only happens with primitive projections DISABLED in
recent Coqs (>=8.8).
Implicit argument experts may consider whether ensuring enough
implicits are declared would be better.
Diffstat (limited to 'test-suite/output/Projections.v')
-rw-r--r-- | test-suite/output/Projections.v | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test-suite/output/Projections.v b/test-suite/output/Projections.v new file mode 100644 index 000000000..098a518dc --- /dev/null +++ b/test-suite/output/Projections.v @@ -0,0 +1,11 @@ + +Set Printing Projections. + +Class HostFunction := host_func : Type. + +Section store. + Context `{HostFunction}. + Record store := { store_funcs : host_func }. +End store. + +Check (fun (S:@store nat) => S.(store_funcs)). |