Skip to content

Commit

Permalink
FIR: Do not propagate overriddenSymbol at FirObjectImportedCallableScope
Browse files Browse the repository at this point in the history
  • Loading branch information
dzharkov committed Nov 6, 2020
1 parent 037ba4d commit 728c2a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class FirObjectImportedCallableScope(
val function = symbol.fir
val syntheticFunction = buildSimpleFunctionCopy(function) {
origin = FirDeclarationOrigin.ImportedFromObject
this.symbol = FirNamedFunctionSymbol(CallableId(importedClassId, name), overriddenSymbol = symbol)
this.symbol = FirNamedFunctionSymbol(CallableId(importedClassId, name))
}.apply {
importedFromObjectData = ImportedFromObjectData(importedClassId, function)
}
Expand All @@ -46,7 +46,7 @@ class FirObjectImportedCallableScope(
val property = symbol.fir
val syntheticFunction = buildPropertyCopy(property) {
origin = FirDeclarationOrigin.ImportedFromObject
this.symbol = FirPropertySymbol(CallableId(importedClassId, name), overriddenSymbol = symbol)
this.symbol = FirPropertySymbol(CallableId(importedClassId, name))
this.delegateFieldSymbol = null
}.apply {
importedFromObjectData = ImportedFromObjectData(importedClassId, property)
Expand Down

0 comments on commit 728c2a8

Please sign in to comment.