[KT-58817] Compiler defect workaround
Base method `RawFirBuilder.Visitor.convertElement` has a parameter with default value, its overridden one in `VisitorWithReplacement` is not allowed to declare default. So far so good. During its work the compiler throws an exception: `java.lang.IllegalArgumentException: No argument for parameter`.
This commit is contained in:
committed by
Space Team
parent
6535278bd3
commit
3d1e5bb548
+1
-1
@@ -29,7 +29,7 @@ internal fun buildFileFirAnnotation(
|
||||
}
|
||||
}
|
||||
builder.context.packageFqName = fileAnnotation.containingKtFile.packageFqName
|
||||
val result = builder.VisitorWithReplacement().convertElement(fileAnnotation) as FirAnnotation
|
||||
val result = builder.VisitorWithReplacement().convertElement(fileAnnotation, null) as FirAnnotation
|
||||
replacementApplier?.ensureApplied()
|
||||
return result
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user