diff options
author | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-01-30 10:47:24 +0100 |
---|---|---|
committer | Hubert Plociniczak <hubert.plociniczak@gmail.com> | 2012-01-30 10:47:24 +0100 |
commit | 58679b953933494b5f06d61e82257391bba4091c (patch) | |
tree | aed459512d82d0c7f7db18426058679475754f83 /src | |
parent | 5e9dd4a05c25f463f29d0fbc2f1bec194bf7700b (diff) | |
download | scala-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')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
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 |