Skip to content

Commit 923da63

Browse files
committed
Fix Settings#value.
It was returning the entire settings buffer, rather than a single entry.
1 parent 4eb61cd commit 923da63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotty/tools/dotc/config/Settings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ object Settings {
1818
private var values = ArrayBuffer(initialValues: _*)
1919
private var _wasRead: Boolean = false
2020

21-
def value(idx: Int) = {
21+
def value(idx: Int): Any = {
2222
_wasRead = true
23-
values
23+
values(idx)
2424
}
2525

2626
def update(idx: Int, x: Any): SettingsState =

0 commit comments

Comments
 (0)