summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-01-30 10:47:24 +0100
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-01-30 10:47:24 +0100
commit58679b953933494b5f06d61e82257391bba4091c (patch)
treeaed459512d82d0c7f7db18426058679475754f83 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent5e9dd4a05c25f463f29d0fbc2f1bec194bf7700b (diff)
downloadscala-58679b953933494b5f06d61e82257391bba4091c.tar.gz
scala-58679b953933494b5f06d61e82257391bba4091c.tar.bz2
scala-58679b953933494b5f06d61e82257391bba4091c.zip
Closes #4336.
Some of the type params might already be instantiated if explicit type application is done. Review by @adriaanm
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 770b55d6ab..d3ff331f98 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -793,7 +793,7 @@ trait Typers extends Modes with Adaptations with PatMatVirtualiser {
val tree0 = etaExpand(context.unit, tree)
// println("eta "+tree+" ---> "+tree0+":"+tree0.tpe+" undet: "+context.undetparams+ " mode: "+Integer.toHexString(mode))
- if (meth.typeParams.nonEmpty) {
+ if (context.undetparams.nonEmpty) {
// #2624: need to infer type arguments for eta expansion of a polymorphic method
// context.undetparams contains clones of meth.typeParams (fresh ones were generated in etaExpand)
// need to run typer on tree0, since etaExpansion sets the tpe's of its subtrees to null