Skip to content

Commit 42635bc

Browse files
committed
test-suite example
1 parent 91d3d92 commit 42635bc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test-suite/success/CanonicalStructure.v

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,15 @@ Module ExtraArgs.
216216
Check fun (f : nat -> nat) => eq_refl : apply _ 0 = f 0.
217217

218218
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

Comments
 (0)