Skip to content

Commit

Permalink
Add test for coq#16880
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Sep 7, 2023
1 parent c4b4e02 commit 64b667b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test-suite/bugs/bug_16880.v
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Polymorphic Axiom T@{u} : Prop.

Universe u1 u2.

Definition t1 := T@{u1}.
Definition t2 := T@{u2}.

Constraint u1 = u2.

Check fun P : t1 => P <: t2.
(* Error: In environment
P : t1
The term "P" has type "t1" while it is expected to have type "t2". *)

0 comments on commit 64b667b

Please sign in to comment.