@@ -206,13 +206,13 @@ object Types {
206206 def loop (tp : Type ): Boolean = tp match {
207207 case tp : TypeRef =>
208208 val sym = tp.symbol
209- if (sym.isClass) sym.derivesFrom(cls) else loop(tp.superType): @ tailrec
209+ if (sym.isClass) sym.derivesFrom(cls) else loop(tp.superType)
210210 case tp : TypeProxy =>
211- loop(tp.underlying): @ tailrec
211+ loop(tp.underlying)
212212 case tp : AndType =>
213- loop(tp.tp1) || loop(tp.tp2): @ tailrec
213+ loop(tp.tp1) || loop(tp.tp2)
214214 case tp : OrType =>
215- loop(tp.tp1) && loop(tp.tp2): @ tailrec
215+ loop(tp.tp1) && loop(tp.tp2)
216216 case tp : JavaArrayType =>
217217 cls == defn.ObjectClass
218218 case _ =>
@@ -389,16 +389,16 @@ object Types {
389389 */
390390 final def classSymbol (implicit ctx : Context ): Symbol = this match {
391391 case ConstantType (constant) =>
392- constant.tpe.classSymbol: @ tailrec
392+ constant.tpe.classSymbol
393393 case tp : TypeRef =>
394394 val sym = tp.symbol
395- if (sym.isClass) sym else tp.superType.classSymbol: @ tailrec
395+ if (sym.isClass) sym else tp.superType.classSymbol
396396 case tp : ClassInfo =>
397397 tp.cls
398398 case tp : SingletonType =>
399399 NoSymbol
400400 case tp : TypeProxy =>
401- tp.underlying.classSymbol: @ tailrec
401+ tp.underlying.classSymbol
402402 case AndType (l, r) =>
403403 val lsym = l.classSymbol
404404 val rsym = r.classSymbol
@@ -422,9 +422,9 @@ object Types {
422422 tp.cls :: Nil
423423 case tp : TypeRef =>
424424 val sym = tp.symbol
425- if (sym.isClass) sym.asClass :: Nil else tp.superType.classSymbols: @ tailrec
425+ if (sym.isClass) sym.asClass :: Nil else tp.superType.classSymbols
426426 case tp : TypeProxy =>
427- tp.underlying.classSymbols: @ tailrec
427+ tp.underlying.classSymbols
428428 case AndType (l, r) =>
429429 l.classSymbols union r.classSymbols
430430 case OrType (l, r) =>
@@ -465,7 +465,7 @@ object Types {
465465 case tp : ClassInfo =>
466466 tp.decls
467467 case tp : TypeProxy =>
468- tp.underlying.decls: @ tailrec
468+ tp.underlying.decls
469469 case _ =>
470470 EmptyScope
471471 }
@@ -711,7 +711,7 @@ object Types {
711711 val ns = tp.parent.memberNames(keepOnly, pre)
712712 if (keepOnly(pre, tp.refinedName)) ns + tp.refinedName else ns
713713 case tp : TypeProxy =>
714- tp.underlying.memberNames(keepOnly, pre): @ tailrec
714+ tp.underlying.memberNames(keepOnly, pre)
715715 case tp : AndType =>
716716 tp.tp1.memberNames(keepOnly, pre) | tp.tp2.memberNames(keepOnly, pre)
717717 case tp : OrType =>
@@ -1028,21 +1028,21 @@ object Types {
10281028 case tp : TypeRef =>
10291029 if (tp.symbol.isClass) tp
10301030 else tp.info match {
1031- case TypeAlias (alias) => alias.dealias1(keep): @ tailrec
1031+ case TypeAlias (alias) => alias.dealias1(keep)
10321032 case _ => tp
10331033 }
10341034 case app @ AppliedType (tycon, args) =>
10351035 val tycon1 = tycon.dealias1(keep)
1036- if (tycon1 ne tycon) app.superType.dealias1(keep): @ tailrec
1036+ if (tycon1 ne tycon) app.superType.dealias1(keep)
10371037 else this
10381038 case tp : TypeVar =>
10391039 val tp1 = tp.instanceOpt
1040- if (tp1.exists) tp1.dealias1(keep): @ tailrec else tp
1040+ if (tp1.exists) tp1.dealias1(keep) else tp
10411041 case tp : AnnotatedType =>
10421042 val tp1 = tp.parent.dealias1(keep)
10431043 if (keep(tp)(ctx)) tp.derivedAnnotatedType(tp1, tp.annot) else tp1
10441044 case tp : LazyRef =>
1045- tp.ref.dealias1(keep): @ tailrec
1045+ tp.ref.dealias1(keep)
10461046 case _ => this
10471047 }
10481048
0 commit comments