diff options
author | Paul Phillips <paulp@improving.org> | 2011-05-31 09:02:29 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-05-31 09:02:29 +0000 |
commit | fb061f22d4c35df626d9651e017820a11f8fe56e (patch) | |
tree | 17b7771b77f70b142be50fdbf967199c10ffff18 /src/compiler/scala/tools/nsc/typechecker/Typers.scala | |
parent | 1c2d44dda075ef63933502f0791d500f8650a457 (diff) | |
download | scala-fb061f22d4c35df626d9651e017820a11f8fe56e.tar.gz scala-fb061f22d4c35df626d9651e017820a11f8fe56e.tar.bz2 scala-fb061f22d4c35df626d9651e017820a11f8fe56e.zip |
A getter with type params is still a getter.
There were two distinct bugs in here, which if I ran the world would be
a wakeup call that robust software cannot emerge from thousands of lines
of low-level AST matching. In case you are frozen in suspense: I do not
run the world. Review by moors.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-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 c43fa377a4..114fa7ed1b 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -3120,7 +3120,7 @@ trait Typers extends Modes { return fail if (treeInfo.mayBeVarGetter(varsym)) { - lhs1 match { + treeInfo.methPart(lhs1) match { case Select(qual, name) => val sel = Select(qual, nme.getterToSetter(name.toTermName)) setPos lhs.pos val app = Apply(sel, List(rhs)) setPos tree.pos |