diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-08-15 15:35:02 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-08-15 17:46:24 +0200 |
commit | 6a67ef69144e5ad33857fde582cbf191e56cd82b (patch) | |
tree | 20ccb3cb9f43a36207ea154d54d87ed8285b91a3 | |
parent | 8ca3cdb569789ab360336a8e498b815fa0097f94 (diff) | |
download | scala-6a67ef69144e5ad33857fde582cbf191e56cd82b.tar.gz scala-6a67ef69144e5ad33857fde582cbf191e56cd82b.tar.bz2 scala-6a67ef69144e5ad33857fde582cbf191e56cd82b.zip |
phaseId(currentPeriod) >= erasurePhase.id
Simplifies this expression found in Typers to just phase.erasedTypes.
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 7c509f4d33..9b07eed5d7 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -5180,9 +5180,7 @@ trait Typers extends Modes with Adaptations with Tags { case ReferenceToBoxed(idt @ Ident(_)) => val id1 = typed1(idt, mode, pt) match { case id: Ident => id } - // [Eugene] am I doing it right? - val erasedTypes = phaseId(currentPeriod) >= currentRun.erasurePhase.id - val tpe = capturedVariableType(idt.symbol, erasedTypes = erasedTypes) + val tpe = capturedVariableType(idt.symbol, erasedTypes = phase.erasedTypes) treeCopy.ReferenceToBoxed(tree, id1) setType tpe case Literal(value) => |