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:
256256 doSetArg(arg = null , args) // update with default
257257
258258 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
262262 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 _ =>
266265 missingArg
266+ case arg =>
267+ classTag[T ] match
268+ case ListTag =>
269+ appendList(arg.split(" ," ).toList, arg, argsLeft)
267270 case StringTag =>
268271 setString(arg, argsLeft)
269272 case OutputTag =>
You can’t perform that action at this time.
0 commit comments