jereksel
08/10/2020, 6:06 PMSyntheticResolveExtension
stopped working and it throws following error:
e: java.lang.IllegalArgumentException: Unbound type parameters are forbidden: [Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrTypeParameterSymbolImpl@45e9c41b]
at org.jetbrains.kotlin.ir.util.ExternalDependenciesGenerator.generateUnboundSymbolsAsDependencies(ExternalDependenciesGenerator.kt:36)
at org.jetbrains.kotlin.psi2ir.generators.ModuleGenerator.generateUnboundSymbolsAsDependencies(ModuleGenerator.kt:62)
I'm creating type parameters with TypeParameterDescriptorImpl.createWithDefaultBound
, so I wasn't expecting any issues with bounds - especially, because it was working before. Is it known issue? I can create sample reproduction project if it's required.shikasd
08/10/2020, 11:33 PMsymbol
which keeps reference to the descriptor
from frontend. Those symbols are bound
to actual IR types, so that you could retrieve them using owner
property.
However, I am not quite sure why they are not bound when you are creating them with SyntheticResolve
, maybe worth filing a bug to JB with a repro case :)Roman Artemev [JB]
08/11/2020, 9:10 AMjereksel
08/11/2020, 3:53 PMe: java.lang.AssertionError: Unbound symbols not allowed
Unbound public symbol for public /MyClass.duplicate.<get-duplicate>|8325396290023284181[0]
jereksel
08/11/2020, 4:07 PMRoman Artemev [JB]
08/11/2020, 6:21 PM