FIR: Do not set overriddenSymbol for KFunction::invoke
It has been probably set by mistake since overriddenSymbol is only used for fake overrides
This commit is contained in:
+1
-8
@@ -152,11 +152,6 @@ class FirBuiltinSymbolProvider(session: FirSession, val kotlinScopeProvider: Kot
|
|||||||
type = ConeTypeParameterTypeImpl(it.symbol.toLookupTag(), false)
|
type = ConeTypeParameterTypeImpl(it.symbol.toLookupTag(), false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val superKind: FunctionClassKind? = when (kind) {
|
|
||||||
FunctionClassKind.KFunction -> FunctionClassKind.Function
|
|
||||||
FunctionClassKind.KSuspendFunction -> FunctionClassKind.SuspendFunction
|
|
||||||
else -> null
|
|
||||||
}
|
|
||||||
|
|
||||||
fun createSuperType(
|
fun createSuperType(
|
||||||
kind: FunctionClassKind,
|
kind: FunctionClassKind,
|
||||||
@@ -206,9 +201,7 @@ class FirBuiltinSymbolProvider(session: FirSession, val kotlinScopeProvider: Kot
|
|||||||
this.name = name
|
this.name = name
|
||||||
status = functionStatus
|
status = functionStatus
|
||||||
symbol = FirNamedFunctionSymbol(
|
symbol = FirNamedFunctionSymbol(
|
||||||
CallableId(packageFqName, relativeClassName, name),
|
CallableId(packageFqName, relativeClassName, name)
|
||||||
// set overriddenSymbol for "invoke" of KFunction/KSuspendFunction
|
|
||||||
superKind?.getInvoke(arity)
|
|
||||||
)
|
)
|
||||||
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||||
valueParameters += typeArguments.dropLast(1).mapIndexed { index, typeArgument ->
|
valueParameters += typeArguments.dropLast(1).mapIndexed { index, typeArgument ->
|
||||||
|
|||||||
Reference in New Issue
Block a user