fixed t301

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@13656 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
emir 2008-01-04 23:47:22 +00:00
parent 63379f0314
commit 06ff5eabf2
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ trait ParallelMatching {
pats = (makeBind(vs, npat) setType argtpe)::pats
}
case o @ Apply(fn, List()) if !isCaseClass(o.tpe) =>
case o @ Apply(fn, List()) if !isCaseClass(o.tpe) || /*see t301*/ !Apply_Value.unapply(o).isEmpty =>
val stpe: Type = fn match {
case _ if (o.symbol.isModule) =>
singleType(o.tpe.prefix, o.symbol)