diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyClass.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyClass.kt index c17e6632e8d..47157ee4145 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyClass.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/lazy/IrLazyClass.kt @@ -78,13 +78,7 @@ class IrLazyClass( private fun shouldBuildStub(descriptor: DeclarationDescriptor): Boolean = descriptor !is DeclarationDescriptorWithVisibility || - !DescriptorVisibilities.isPrivate(descriptor.visibility) || - // Always build lazy IR stubs for inline class primary constructors. - // This is needed because primary constructors of inline classes can be private, and prior to 1.5.0, there was no way - // to determine the inline class representation other than by loading the single value parameter of the primary constructor - // (corresponding metadata entry was added in 1.5.0). Backend still tries to load inline class representation in this way - // to support compilation against inline classes compiled with 1.4.30 or earlier. - (descriptor is ConstructorDescriptor && isInline) + !DescriptorVisibilities.isPrivate(descriptor.visibility) override var typeParameters: List by lazyVar(stubGenerator.lock) { descriptor.declaredTypeParameters.mapTo(arrayListOf()) {