You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fun pat : ?T * ?T0 =>
let '(x, y) as x := pat return (x = x) in eq_refl
which is not reinterpretable due to the x of as x is used in the pattern (in addition to being used in the return clause). Being used in the pattern, it clashes with the other x.
Interestingly,
Check fun pat : nat * nat => let '(x, y) := pat in eq_refl (x,y).
does not have the problem. It gives:
fun pat : ?T * ?T0 =>
let '(x, y) as pat0 := pat return (pat0 = pat0) in eq_refl
A fix shall come soon.
Coq Version
A priori all versions since fun 'pat => ... is supported.
The text was updated successfully, but these errors were encountered:
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 21, 2021
…t-pattern.
The compilation can still be improved though (e.g. there seems to be a
useless "p := p0" in the environment of the types of the variables).
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Aug 21, 2021
…t-pattern.
The compilation can still be improved though (e.g. there seems to be a
useless "p := p0" in the environment of the types of the variables).
…t-pattern.
The compilation can still be improved though (e.g. there seems to be a
useless "p := p0" in the environment of the types of the variables).
Description of the problem
is displayed as
which is not reinterpretable due to the
x
ofas x
is used in the pattern (in addition to being used in the return clause). Being used in the pattern, it clashes with the otherx
.Interestingly,
does not have the problem. It gives:
A fix shall come soon.
Coq Version
A priori all versions since
fun 'pat => ...
is supported.The text was updated successfully, but these errors were encountered: