Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 6e8fa15

Browse files
committed
Get rid of unneeded var.
1 parent 83d0b6a commit 6e8fa15

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/compiler/scala/tools/nsc/typechecker/Namers.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ trait Namers extends MethodSynthesis {
2525
var _lockedCount = 0
2626
def lockedCount = this._lockedCount
2727

28-
private var inferDependentTypes = false
29-
3028
/** Replaces any Idents for which cond is true with fresh TypeTrees().
3129
* Does the same for any trees containing EmptyTrees.
3230
*/
@@ -865,7 +863,7 @@ trait Namers extends MethodSynthesis {
865863
)
866864
dropIllegalStarTypes(
867865
if (shouldWiden) tpe.widen
868-
else if (sym.isFinal || (isLiteral && inferDependentTypes)) tpe // "final val" allowed to retain constant type
866+
else if (sym.isFinal) tpe // "final val" allowed to retain constant type
869867
else tpe.deconst
870868
)
871869
}

0 commit comments

Comments
 (0)