ephemient
05/03/2024, 6:09 PMephemient
05/03/2024, 6:12 PM// module :a
sealed class AResult<T> { ... }
// module :b, dependencies { implementation(":a") }
sealed class BResult<T> { ... }
suspend fun service() = ... // BResult<AResult<...>>, not written explicitly
// module :c, dependencies { implementation(":b") }
when (service()) {
is BResult.Success -> ...
this failed with IllegalStateException: Can't find KotlinType in IrErrorType: IrErrorType(null)
and a huge stacktrace, nothing mentioning the non-exposed AResult
type as the problemephemient
05/03/2024, 6:13 PMephemient
05/03/2024, 6:14 PMOliver.O
05/04/2024, 9:32 AMmglukhikh
05/06/2024, 8:03 AM