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:
parent
63379f0314
commit
06ff5eabf2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue