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
This seems to be the best strategy for now, given that
quotes are the implicit args trick is only used for
matching Expr[T], and `case _ =>` is always used in such
cases.
Otherwise, we will need to reason equality of Terms, which is subtle.
liufengyun
added a commit
to dotty-staging/dotty
that referenced
this issue
Apr 8, 2019
This seems to be the best strategy for now, given that
the implicit args trick is only used for matching Expr[T],
and `case _ =>` is always used in such cases.
Otherwise, we will need to reason equality of Terms, which is subtle.
which is transformed in typer to
Where the patterns become part of the implicit arguments of the
unapply
.The second case is considered as unreachable even when they differ in their parameters.
The text was updated successfully, but these errors were encountered: