aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-02-15 20:53:43 +0100
committerMartin Odersky <odersky@gmail.com>2016-02-17 18:39:48 +0100
commit41079cd8e196817048812a51041086b31908fcc3 (patch)
tree6debb4c658245c285b8d2efab48b806f3dd2a02b /src/dotty/tools/dotc/core/SymDenotations.scala
parent203dfaa2a7165340a43a4a1ca921df187067e188 (diff)
downloaddotty-41079cd8e196817048812a51041086b31908fcc3.tar.gz
dotty-41079cd8e196817048812a51041086b31908fcc3.tar.bz2
dotty-41079cd8e196817048812a51041086b31908fcc3.zip
Adress reviewer comments
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index 0235c5048..705e1a4fa 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -45,7 +45,7 @@ trait SymDenotations { this: Context =>
if (denot.is(ValidForever) || denot.isRefinementClass) true
else {
val initial = denot.initial
- var firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
+ val firstPhaseId = initial.validFor.firstPhaseId.max(ctx.typerPhase.id)
if ((initial ne denot) || ctx.phaseId != firstPhaseId)
ctx.withPhase(firstPhaseId).stillValidInOwner(initial.asSymDenotation)
else
@@ -85,9 +85,9 @@ trait SymDenotations { this: Context =>
else if (!owner.isClass || owner.isRefinementClass || denot.isSelfSym) true
else if (owner.unforcedDecls.lookupAll(denot.name) contains denot.symbol) true
else explainSym(s"decls of ${show(owner)} are ${owner.unforcedDecls.lookupAll(denot.name).toList}, do not contain ${denot.symbol}")
- } catch {
- case ex: StaleSymbol => explainSym(s"$ex was thrown")
- }
+ } catch {
+ case ex: StaleSymbol => explainSym(s"$ex was thrown")
+ }
}
case _ =>
explain("denotation is not a SymDenotation")