summaryrefslogtreecommitdiff
path: root/src/compiler/scala/reflect/internal/Types.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-06-25 21:24:35 +0000
committerPaul Phillips <paulp@improving.org>2011-06-25 21:24:35 +0000
commit7b7b242299fa4f8e8f201aefc41eb4270babe398 (patch)
tree1eb7ef30ed42610314d8302a195bb4de3a01a565 /src/compiler/scala/reflect/internal/Types.scala
parentd8912db1436a42474ddd45007569246ee2af9000 (diff)
downloadscala-7b7b242299fa4f8e8f201aefc41eb4270babe398.tar.gz
scala-7b7b242299fa4f8e8f201aefc41eb4270babe398.tar.bz2
scala-7b7b242299fa4f8e8f201aefc41eb4270babe398.zip
Cosmetic removal of redundant toList call on it...
Cosmetic removal of redundant toList call on iterable target, no review.
Diffstat (limited to 'src/compiler/scala/reflect/internal/Types.scala')
-rw-r--r--src/compiler/scala/reflect/internal/Types.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/reflect/internal/Types.scala b/src/compiler/scala/reflect/internal/Types.scala
index ba4547a3b8..6152cd70f5 100644
--- a/src/compiler/scala/reflect/internal/Types.scala
+++ b/src/compiler/scala/reflect/internal/Types.scala
@@ -1411,7 +1411,7 @@ trait Types /*extends reflect.generic.Types*/ { self: SymbolTable =>
override def isStructuralRefinement: Boolean =
typeSymbol.isAnonOrRefinementClass &&
- (decls.toList exists { entry => !entry.isConstructor && entry.allOverriddenSymbols.isEmpty })
+ (decls exists { entry => !entry.isConstructor && entry.allOverriddenSymbols.isEmpty })
// override def isNullable: Boolean =
// parents forall (p => p.isNullable && !p.typeSymbol.isAbstractType);
@@ -2019,7 +2019,7 @@ A type's typeSymbol should never be inspected directly.
else if (sym.isAnonymousClass && sym.isInitialized && !settings.debug.value && !phase.erasedTypes)
thisInfo.parents.mkString(" with ") + {
if (sym.isStructuralRefinement)
- ((decls.toList filter { entry =>
+ ((decls filter { entry =>
!entry.isConstructor && entry.allOverriddenSymbols.isEmpty && !entry.isPrivate
}) map { entry => entry.defString }).mkString("{", "; ", "}")
else
@@ -4744,7 +4744,7 @@ A type's typeSymbol should never be inspected directly.
thirdTryRef(tp1, tr2)
case rt2: RefinedType =>
(rt2.parents forall (tp1 <:< _)) &&
- (rt2.decls.toList forall tp1.specializes)
+ (rt2.decls forall tp1.specializes)
case et2: ExistentialType =>
et2.withTypeVars(tp1 <:< _, depth) || fourthTry
case nn2: NotNullType =>