summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-06-25 18:20:09 +0000
committerMartin Odersky <odersky@gmail.com>2009-06-25 18:20:09 +0000
commitd2c69112e0040005c81b7561b92582000b78c918 (patch)
treec249887c491d0c7746a2e852602549819a93ba7f /src
parentff1eb3aa120b0cc01bae7c6b6d898e3e90dad9d1 (diff)
downloadscala-d2c69112e0040005c81b7561b92582000b78c918.tar.gz
scala-d2c69112e0040005c81b7561b92582000b78c918.tar.bz2
scala-d2c69112e0040005c81b7561b92582000b78c918.zip
better positions for ValDefs
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Namers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Namers.scala b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
index 61e59f2b2e..685fe8b419 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Namers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Namers.scala
@@ -1119,7 +1119,7 @@ trait Namers { self: Analyzer =>
sym,
newTyper(typer1.context.make(vdef, sym)).computeType(rhs, WildcardType),
WildcardType)
- tpt setPos vdef.pos
+ tpt setOriginal vdef
tpt.tpe
}
} else typer1.typedType(tpt).tpe