File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
compiler/src/dotty/tools/dotc/config Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -256,14 +256,17 @@ object Settings:
256
256
doSetArg(arg = null , args) // update with default
257
257
258
258
def doSetArg (arg : String | Null , argsLeft : List [String ]) =
259
- classTag[ T ] match
260
- case ListTag if arg == null =>
261
- update(default, argStringValue = " " , argsLeft)
259
+ arg match
260
+ case null =>
261
+ classTag[ T ] match
262
262
case ListTag =>
263
- val strings = arg.split(" ," ).toList
264
- appendList(strings, arg, argsLeft)
265
- case _ if arg == null =>
263
+ update(default, argStringValue = " " , argsLeft)
264
+ case _ =>
266
265
missingArg
266
+ case arg =>
267
+ classTag[T ] match
268
+ case ListTag =>
269
+ appendList(arg.split(" ," ).toList, arg, argsLeft)
267
270
case StringTag =>
268
271
setString(arg, argsLeft)
269
272
case OutputTag =>
You can’t perform that action at this time.
0 commit comments