summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2012-08-15 15:35:02 +0200
committerEugene Burmako <xeno.by@gmail.com>2012-08-15 17:46:24 +0200
commit6a67ef69144e5ad33857fde582cbf191e56cd82b (patch)
tree20ccb3cb9f43a36207ea154d54d87ed8285b91a3 /src
parent8ca3cdb569789ab360336a8e498b815fa0097f94 (diff)
downloadscala-6a67ef69144e5ad33857fde582cbf191e56cd82b.tar.gz
scala-6a67ef69144e5ad33857fde582cbf191e56cd82b.tar.bz2
scala-6a67ef69144e5ad33857fde582cbf191e56cd82b.zip
phaseId(currentPeriod) >= erasurePhase.id
Simplifies this expression found in Typers to just phase.erasedTypes.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala4
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) =>