Not sure if this is the right place to ask, but facing a compiler issue updating from 2.0.10 to 2.0.20/2.0.21, I will raise a ticket but where does the compiler log to when using Gradle? I couldn't get more relevant information with just the Gradle
--debug
flag
class PriceKey {
data class Leg<out S : Settlement, out T : ClientDealtDirection>(
override val settlement: S,
override val amount: BigDecimal,
override val direction: T,
) : IPriceKeyLeg<S, T>
}
interface IPriceKeyLeg<out S : Settlement, out T : ClientDealtDirection> : INettableLeg<T> {
val settlement: S
override val direction: T
}
interface INettableLeg<out T : ClientDealtDirection> : Serializable {
val amount: BigDecimal
val direction: T
}
e: java.lang.IllegalStateException: Cannot replace top-level type with star projection: S of com.caplin.one.common.data.price.PriceKey.Leg
at org.jetbrains.kotlin.ir.types.BaseIrTypeSubstitutor.substitute(IrTypeSubstitutor.kt:34)
at org.jetbrains.kotlin.fir.backend.Fir2IrDelegatedMembersGenerationStrategy.generateDelegatedFunctionBody(Fir2IrFakeOverrideStrategy.kt:353)