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
Pattern matches have to be linear in type variables. But apparently Dotty demands the same in generated type variables as well, at least if they come from a single type variable.
-- [E005] Naming Error: /Users/pgiarrusso/git/dotty/tests/IterableTest.scala:157:12
157 | case (C3(), C3()) =>
| ^
| duplicate pattern variable: `_$6`
Explanation
===========
For each case bound variable names have to be unique. In:
case (C3(), C3()) =>
`_$6` is not unique. Rename one of the bound variables!
one error found
The text was updated successfully, but these errors were encountered:
Pattern matches have to be linear in type variables. But apparently Dotty demands the same in generated type variables as well, at least if they come from a single type variable.
Sample code:
Error (with
-explain
, on commit 4149833):The text was updated successfully, but these errors were encountered: