File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/tastyreflect Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ object TastyImpl extends scala.tasty.Tasty {
485
485
486
486
object Bind extends BindExtractor {
487
487
def unapply (x : Pattern )(implicit ctx : Context ): Option [(String , Pattern )] = x match {
488
- case x : tpd.Bind @ unchecked if x.name.isInstanceOf [ Names . TermName ] => Some (x.name.toString, x.body)
488
+ case x : tpd.Bind @ unchecked if x.name.isTermName => Some (x.name.toString, x.body)
489
489
case _ => None
490
490
}
491
491
}
@@ -626,7 +626,7 @@ object TastyImpl extends scala.tasty.Tasty {
626
626
627
627
object Bind extends BindExtractor {
628
628
def unapply (x : TypeTree )(implicit ctx : Context ): Option [(String , TypeBoundsTree )] = x match {
629
- case x : tpd.Bind @ unchecked if x.name.isInstanceOf [ Names . TypeName ] => Some ((x.name.toString, x.body))
629
+ case x : tpd.Bind @ unchecked if x.name.isTypeName => Some ((x.name.toString, x.body))
630
630
case _ => None
631
631
}
632
632
}
You can’t perform that action at this time.
0 commit comments