Closes #3015. Review by moors (it's his patch).
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@21077 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
ea78c6a6eb
commit
94522cc659
|
@ -2520,7 +2520,7 @@ trait Typers { self: Analyzer =>
|
|||
error(fun.pos, "cannot resolve overloaded unapply")
|
||||
(ErrorType, List())
|
||||
}
|
||||
val (unappFormal, freeVars) = freshArgType(unappType)
|
||||
val (unappFormal, freeVars) = freshArgType(unappType.skolemizeExistential(context.owner, tree))
|
||||
val context1 = context.makeNewScope(context.tree, context.owner)
|
||||
freeVars foreach context1.scope.enter
|
||||
val typer1 = newTyper(context1)
|
||||
|
|
Loading…
Reference in New Issue