[FIR] Don't transform nested classes during class update because of @JvmRecord annotation
^KT-55703 Fixed
This commit is contained in:
committed by
Space Team
parent
ad191eb179
commit
8bd3c9d019
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user