[FIR] Don't transform nested classes during class update because of @JvmRecord annotation

^KT-55703 Fixed
This commit is contained in:
Dmitriy Novozhilov
2023-01-11 15:00:47 +02:00
committed by Space Team
parent ad191eb179
commit 8bd3c9d019
2 changed files with 3 additions and 3 deletions
@@ -59,7 +59,7 @@ class JvmSupertypeUpdater(private val session: FirSession) : PlatformSupertypeUp
if (anyFound || !hasExplicitSuperClass) {
firClass.replaceSuperTypeRefs(newSuperTypeRefs)
firClass.transformSingle(jvmRecordUpdater, scopeSession)
firClass.transformDeclarations(jvmRecordUpdater, scopeSession)
}
}
@@ -73,7 +73,7 @@ class JvmSupertypeUpdater(private val session: FirSession) : PlatformSupertypeUp
}
override fun transformRegularClass(regularClass: FirRegularClass, data: ScopeSession): FirStatement {
return regularClass.transformDeclarations(this, data)
return regularClass
}
override fun transformConstructor(constructor: FirConstructor, data: ScopeSession): FirStatement {