Skip to content

Commit 08f1233

Browse files
author
jerylee
committed
Properly emit warning
1 parent 42002df commit 08f1233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ object Settings {
115115
val ArgsSummary(sstate, arg :: args, errors, warnings) = state
116116
def update(value: Any, args: List[String]) = {
117117
if (changed) {
118-
state.warn(s"Flag $name set repeatedly")
118+
ArgsSummary(updateIn(sstate, value), args, errors, warnings :+ s"Flag $name set repeatedly")
119119
} else {
120120
changed = true
121121
ArgsSummary(updateIn(sstate, value), args, errors, warnings)

0 commit comments

Comments
 (0)