Add extra parent checks in Fir2IrLazyClass
This commit is contained in:
@@ -132,7 +132,7 @@ class Fir2IrLazyClass(
|
|||||||
if (declaration.name !in processedNames) {
|
if (declaration.name !in processedNames) {
|
||||||
processedNames += declaration.name
|
processedNames += declaration.name
|
||||||
scope.processFunctionsByName(declaration.name) {
|
scope.processFunctionsByName(declaration.name) {
|
||||||
if (it is FirNamedFunctionSymbol) {
|
if (it is FirNamedFunctionSymbol && it.callableId.classId == fir.symbol.classId) {
|
||||||
if (it.isAbstractMethodOfAny()) {
|
if (it.isAbstractMethodOfAny()) {
|
||||||
return@processFunctionsByName
|
return@processFunctionsByName
|
||||||
}
|
}
|
||||||
@@ -175,6 +175,11 @@ class Fir2IrLazyClass(
|
|||||||
with(fakeOverrideGenerator) {
|
with(fakeOverrideGenerator) {
|
||||||
result += getFakeOverrides(fir, processedNames)
|
result += getFakeOverrides(fir, processedNames)
|
||||||
}
|
}
|
||||||
|
for (declaration in result) {
|
||||||
|
if (declaration.parent != this) {
|
||||||
|
throw AssertionError()
|
||||||
|
}
|
||||||
|
}
|
||||||
result
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user