[FIR] Use correct origin for value and type parameters of synthetic functions
This commit is contained in:
committed by
Space Team
parent
c0f387dbd1
commit
0e7fc3bafe
+2
-2
@@ -430,7 +430,7 @@ class FirSyntheticCallGenerator(
|
|||||||
val typeParameter =
|
val typeParameter =
|
||||||
buildTypeParameter {
|
buildTypeParameter {
|
||||||
moduleData = session.moduleData
|
moduleData = session.moduleData
|
||||||
origin = FirDeclarationOrigin.Library
|
origin = FirDeclarationOrigin.Synthetic.FakeFunction
|
||||||
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
resolvePhase = FirResolvePhase.ANALYZED_DEPENDENCIES
|
||||||
name = Name.identifier("K")
|
name = Name.identifier("K")
|
||||||
symbol = typeParameterSymbol
|
symbol = typeParameterSymbol
|
||||||
@@ -550,7 +550,7 @@ class FirSyntheticCallGenerator(
|
|||||||
return buildValueParameter {
|
return buildValueParameter {
|
||||||
moduleData = session.moduleData
|
moduleData = session.moduleData
|
||||||
containingFunctionSymbol = functionSymbol
|
containingFunctionSymbol = functionSymbol
|
||||||
origin = FirDeclarationOrigin.Library
|
origin = FirDeclarationOrigin.Synthetic.FakeFunction
|
||||||
this.name = name
|
this.name = name
|
||||||
returnTypeRef = this@toValueParameter
|
returnTypeRef = this@toValueParameter
|
||||||
isCrossinline = false
|
isCrossinline = false
|
||||||
|
|||||||
Reference in New Issue
Block a user