Skip to content

Commit 594fcaf

Browse files
committed
silence warning about never-assigned var
1 parent 1bac0c6 commit 594fcaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/scala/collection/immutable/TrieIterator.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private[collection] abstract class TrieIterator[+T](elems: Array[Iterable[T]]) e
3939
def initSubIter: Iterator[T] = null // to traverse collision nodes
4040

4141
private[this] var depth = initDepth
42-
private[this] var arrayStack: Array[Array[Iterable[T @uV]]] = initArrayStack
42+
private[this] val arrayStack: Array[Array[Iterable[T @uV]]] = initArrayStack
4343
private[this] var posStack = initPosStack
4444
private[this] var arrayD: Array[Iterable[T @uV]] = initArrayD
4545
private[this] var posD = initPosD

0 commit comments

Comments
 (0)