jean
08/25/2021, 2:30 PMoverride val isExecutable: (LoginViewState) -> Boolean = {
it.isLoading &&
it.email.value.isNotEmpty() &&
it.password.value.isNotEmpty()
}
when I put a break point within the lambda and test it.email.value.isNotEmpty()
I get the following error
org.jetbrains.kotlin.codegen.CompilationException : Back-end (JVM) Internal error: Failed to generate expression: KtCallExpression
File being compiled: (1,16) in /fragment.kt
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 PMatyrin
08/25/2021, 8:00 PMjean
08/26/2021, 6:19 AMandroidTest