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 {
485485
486486 object Bind extends BindExtractor {
487487 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)
489489 case _ => None
490490 }
491491 }
@@ -626,7 +626,7 @@ object TastyImpl extends scala.tasty.Tasty {
626626
627627 object Bind extends BindExtractor {
628628 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))
630630 case _ => None
631631 }
632632 }
You can’t perform that action at this time.
0 commit comments