summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-09-17 11:00:31 +0000
committerMartin Odersky <odersky@gmail.com>2009-09-17 11:00:31 +0000
commit27f573afb47fcc38627df20058fae1cfa0fcb947 (patch)
tree20b3a7d1a1e7a4a4542d4c307bf90a4a2f02ec6b /src/compiler/scala/tools/nsc/ast/TreeInfo.scala
parent63089db7fb68d070a2fdbcd3ca893a638eb5137e (diff)
downloadscala-27f573afb47fcc38627df20058fae1cfa0fcb947.tar.gz
scala-27f573afb47fcc38627df20058fae1cfa0fcb947.tar.bz2
scala-27f573afb47fcc38627df20058fae1cfa0fcb947.zip
new starr, with some changes to varargs handling.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeInfo.scala')
-rw-r--r--src/compiler/scala/tools/nsc/ast/TreeInfo.scala6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
index 5e1a36dc72..a4f585b196 100644
--- a/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
+++ b/src/compiler/scala/tools/nsc/ast/TreeInfo.scala
@@ -170,8 +170,10 @@ abstract class TreeInfo {
/** Is type a of the form T* ? */
def isRepeatedParamType(tpt: Tree) = tpt match {
- case AppliedTypeTree(Select(_, rp), _) => rp == nme.REPEATED_PARAM_CLASS_NAME.toTypeName
- case TypeTree() => tpt.tpe.typeSymbol == definitions.RepeatedParamClass
+ case AppliedTypeTree(Select(_, rp), _) =>
+ rp == nme.REPEATED_PARAM_CLASS_NAME.toTypeName ||
+ rp == nme.JAVA_REPEATED_PARAM_CLASS_NAME.toTypeName
+ case TypeTree() => definitions.isRepeatedParamType(tpt.tpe)
case _ => false
}