[AA] Add workaround for KT-62544
This commit is contained in:
committed by
Space Team
parent
274198d8f3
commit
605a567e10
+3
-2
@@ -221,7 +221,8 @@ internal fun deserializeClassToSymbol(
|
||||
val zippedParameters =
|
||||
classOrObject.primaryConstructorParameters zip declarations.filterIsInstance<FirProperty>()
|
||||
addDeclaration(
|
||||
createDataClassCopyFunction(
|
||||
// Explicit type arguments are needed to workaround KT-62544
|
||||
createDataClassCopyFunction<Any, KtClassOrObject, KtParameter>(
|
||||
classId,
|
||||
classOrObject,
|
||||
context.dispatchReceiver,
|
||||
@@ -231,7 +232,7 @@ internal fun deserializeClassToSymbol(
|
||||
createParameterTypeRefWithSourceKind = { property, newKind ->
|
||||
property.returnTypeRef.copyWithNewSourceKind(newKind)
|
||||
},
|
||||
toFirSource = { src, kind -> KtFakeSourceElement(src as PsiElement, kind) },
|
||||
toFirSource = { src: Any?, kind -> KtFakeSourceElement(src as PsiElement, kind) },
|
||||
addValueParameterAnnotations = { annotations += context.annotationDeserializer.loadAnnotations(it) },
|
||||
isVararg = { it.isVarArg },
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user