diff options
author | Adriaan Moors <adriaan@lightbend.com> | 2016-08-11 10:29:47 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan@lightbend.com> | 2016-08-11 11:03:41 -0700 |
commit | af02e291b6baf4f673a79f4c32e6da67d31bdd75 (patch) | |
tree | df9f0033bf66fc0e662dbc0ca0bba0133e8ee47a /src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | |
parent | f1cbe8aee820e166283c0948edede2c6b6624d01 (diff) | |
download | scala-af02e291b6baf4f673a79f4c32e6da67d31bdd75.tar.gz scala-af02e291b6baf4f673a79f4c32e6da67d31bdd75.tar.bz2 scala-af02e291b6baf4f673a79f4c32e6da67d31bdd75.zip |
Review feedback from Jason & Lukas
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala index c036a2a9b8..ea323d0fba 100644 --- a/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala +++ b/src/compiler/scala/tools/nsc/typechecker/MethodSynthesis.scala @@ -301,7 +301,7 @@ trait MethodSynthesis { if (tree.symbol.owner.isTrait || Field.noFieldFor(tree)) rhs1 // TODO move tree.symbol.owner.isTrait into noFieldFor else gen.mkAssignAndReturn(tree.symbol, rhs1) - derivedSym setPos tree.pos // cannot set it at createAndEnterSymbol because basisSym can possibly still have NoPosition + derivedSym setPos tree.pos // TODO: can we propagate `tree.pos` to `derivedSym` when the symbol is created? val ddefRes = DefDef(derivedSym, new ChangeOwnerTraverser(tree.symbol, derivedSym)(body)) // ValDef will have its position focused whereas DefDef will have original correct rangepos // ideally positions would be correct at the creation time but lazy vals are really a special case |