summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-02-13 18:25:24 +0000
committermichelou <michelou@epfl.ch>2008-02-13 18:25:24 +0000
commitb08f3e3e9d516fc13556e06a65d4c29aa39f8e15 (patch)
treeeb2046123adfdbe18f712b47f0e4627a074a8958 /src/compiler/scala/tools/nsc/typechecker/Unapplies.scala
parent8125e64385e20c45c013f5ba18ca2c683a2f3131 (diff)
downloadscala-b08f3e3e9d516fc13556e06a65d4c29aa39f8e15.tar.gz
scala-b08f3e3e9d516fc13556e06a65d4c29aa39f8e15.tar.bz2
scala-b08f3e3e9d516fc13556e06a65d4c29aa39f8e15.zip
removed deprecated class util.Fluid
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Unapplies.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Unapplies.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala
index 94c9d9865a..cacef3a7b2 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala
@@ -171,6 +171,7 @@ trait Unapplies { self: Analyzer =>
val tparams = cdef.tparams map copyUntyped[TypeDef]
val unapplyParamName = newTermName("x$0")
val hasVarArg = constrParams(cdef) match {
+ case Nil :: _ => false
case cps :: _ => treeInfo.isRepeatedParamType(cps.last.tpt)
case _ => false
}