The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.codegen.state.KotlinTypeMapper$Companion.getPackageMemberContainingClassesInfo(KotlinTypeMapper.kt:1402)
If I replace
it.email.value.isNotEmpty()
by
it.email.value.length > 0
it works.
What am I doing wrong here?
PS : I get this error in my KMM project but I feel it’s more of a kotlin-wide issue. Now that
general
is read-only, where am I suppose to ask this kind of questions?
jean
08/25/2021, 2:35 PM
I get the error while running the function from a @Test method
a
atyrin
08/25/2021, 8:00 PM
Hi, is the code located in the common source set? By test do you mean evaluate expression?
Probably, it may be relevant to the issue: https://youtrack.jetbrains.com/issue/KTIJ-17713 or at least share the same root cause.
j
jean
08/26/2021, 6:19 AM
Yes the piece of code is located in common, and I evaluate it while debugging a test function located under