We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5454bca commit 49cfd9fCopy full SHA for 49cfd9f
src/dotty/tools/dotc/transform/PatternMatcher.scala
@@ -979,6 +979,7 @@ class PatternMatcher extends MiniPhaseTransform with DenotTransformer {thisTrans
979
980
object SymbolAndTypeBound {
981
def unapply(tree: Tree): Option[(Symbol, Type)] = tree match {
982
+ case SymbolBound(sym, Typed(_: UnApply, _)) => None // see comment in #189
983
case SymbolBound(sym, TypeBound(tpe)) => Some(sym -> tpe)
984
case TypeBound(tpe) => Some(binder -> tpe)
985
case _ => None
0 commit comments