FIR: Do not propagate overriddenSymbol at FirObjectImportedCallableScope
This commit is contained in:
+2
-2
@@ -29,7 +29,7 @@ class FirObjectImportedCallableScope(
|
|||||||
val function = symbol.fir
|
val function = symbol.fir
|
||||||
val syntheticFunction = buildSimpleFunctionCopy(function) {
|
val syntheticFunction = buildSimpleFunctionCopy(function) {
|
||||||
origin = FirDeclarationOrigin.ImportedFromObject
|
origin = FirDeclarationOrigin.ImportedFromObject
|
||||||
this.symbol = FirNamedFunctionSymbol(CallableId(importedClassId, name), overriddenSymbol = symbol)
|
this.symbol = FirNamedFunctionSymbol(CallableId(importedClassId, name))
|
||||||
}.apply {
|
}.apply {
|
||||||
importedFromObjectData = ImportedFromObjectData(importedClassId, function)
|
importedFromObjectData = ImportedFromObjectData(importedClassId, function)
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,7 @@ class FirObjectImportedCallableScope(
|
|||||||
val property = symbol.fir
|
val property = symbol.fir
|
||||||
val syntheticFunction = buildPropertyCopy(property) {
|
val syntheticFunction = buildPropertyCopy(property) {
|
||||||
origin = FirDeclarationOrigin.ImportedFromObject
|
origin = FirDeclarationOrigin.ImportedFromObject
|
||||||
this.symbol = FirPropertySymbol(CallableId(importedClassId, name), overriddenSymbol = symbol)
|
this.symbol = FirPropertySymbol(CallableId(importedClassId, name))
|
||||||
this.delegateFieldSymbol = null
|
this.delegateFieldSymbol = null
|
||||||
}.apply {
|
}.apply {
|
||||||
importedFromObjectData = ImportedFromObjectData(importedClassId, property)
|
importedFromObjectData = ImportedFromObjectData(importedClassId, property)
|
||||||
|
|||||||
Reference in New Issue
Block a user