We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91d3d92 commit 42635bcCopy full SHA for 42635bc
test-suite/success/CanonicalStructure.v
@@ -216,3 +216,15 @@ Module ExtraArgs.
216
Check fun (f : nat -> nat) => eq_refl : apply _ 0 = f 0.
217
218
End ExtraArgs.
219
+
220
+(* Testing that we unfold keys that match but do not unify *)
221
+Module TestKeys.
222
+Structure Dummy (b : bool) := {T : Type}.
223
+Definition boolF := bool.
224
+Canonical Dummy_boolF : Dummy false := {| T := boolF |}.
225
+Definition boolT := boolF.
226
+Canonical Dummy_boolT : Dummy true := {| T := boolT |}.
227
228
+Set Debug "unification".
229
+Check eq_refl : id (@T false _) = boolT.
230
+End TestKeys.
0 commit comments