[FIR] add Enhancement wrapping for type parameters
^KT-55095 Fixed
This commit is contained in:
committed by
Space Team
parent
2155a23e4e
commit
ec613e57ef
-3
@@ -1,6 +1,3 @@
|
||||
// DO_NOT_CHECK_SYMBOL_RESTORE_K2
|
||||
// KT-55095
|
||||
|
||||
package test
|
||||
|
||||
class SomeClass
|
||||
|
||||
+7
-1
@@ -299,7 +299,13 @@ class FirSignatureEnhancement(
|
||||
status = firMethod.status
|
||||
symbol = FirNamedFunctionSymbol(methodId).also { functionSymbol = it }
|
||||
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||
typeParameters += firMethod.typeParameters
|
||||
typeParameters += firMethod.typeParameters.map { typeParameter ->
|
||||
buildTypeParameterCopy(typeParameter) {
|
||||
origin = FirDeclarationOrigin.Enhancement
|
||||
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||
containingDeclarationSymbol = functionSymbol
|
||||
}
|
||||
}
|
||||
dispatchReceiverType = firMethod.dispatchReceiverType
|
||||
attributes = firMethod.attributes.copy()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user