Skip to content

Commit 34d593b

Browse files
committed
Remove isInstanceOf
1 parent 64db2cf commit 34d593b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/TastyImpl.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)