[K/N][IR][caches] Fixed problems with inline classes

Fixes https://youtrack.jetbrains.com/issue/KT-50978
This commit is contained in:
Igor Chevdar
2022-01-31 13:48:14 +05:00
parent 949e222305
commit c0715cfb0c
2 changed files with 4 additions and 1 deletions
@@ -75,6 +75,7 @@ class IrLazyClass(
private fun shouldBuildStub(descriptor: DeclarationDescriptor): Boolean =
descriptor !is DeclarationDescriptorWithVisibility ||
!DescriptorVisibilities.isPrivate(descriptor.visibility) ||
// This exception is needed for K/N caches usage.
isObject && descriptor is ClassConstructorDescriptor
override var typeParameters: List<IrTypeParameter> by lazyVar(stubGenerator.lock) {