From a4d3c77616fffe7ce0b83dcfd929a33aed472773 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Tue, 10 May 2011 13:31:18 +0000 Subject: close #4441. no review --- src/compiler/scala/tools/nsc/typechecker/Unapplies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala index baf790eb50..67dd272d5a 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Unapplies.scala @@ -192,7 +192,7 @@ trait Unapplies extends ast.TreeDSL val cparamss = constrParamss(cdef) val flat = cparamss flatten - if (flat.isEmpty || cdef.symbol.hasAbstractFlag || (flat exists isDisallowed)) None + if (cdef.symbol.hasAbstractFlag || (flat exists isDisallowed)) None else { val tparams = cdef.tparams map copyUntypedInvariant // the parameter types have to be exactly the same as the constructor's parameter types; so it's -- cgit v1.2.3