We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03fc304 commit 90eedc5Copy full SHA for 90eedc5
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -910,7 +910,7 @@ object Checking {
910
report.errorOrMigrationWarning(NonNamedArgumentInJavaAnnotation(), param, MigrationVersion.NonNamedArgumentInJavaAnnotation)
911
if MigrationVersion.NonNamedArgumentInJavaAnnotation.needsPatch then
912
annotationFieldNamesByIdx.get(paramIdx).foreach: paramName =>
913
- patch(param.span, untpd.cpy.NamedArg(param)(paramName, param).show)
+ patch(param.span.startPos, s"$paramName = ")
914
annot
915
case _ => annot
916
end checkNamedArgumentForJavaAnnotation
0 commit comments