https://kotlinlang.org logo
#android
Title
# android
v

Vladimir Ivanov

06/11/2019, 12:36 PM
private suspend fun onLogin(login: String, password: String) { delay(100) Toast.makeText(this, "Hello from $login, my password is $password", Toast.LENGTH_LONG).show() } This block of code gives me an Internal Compiler Error using 1.3.0-compose-20190503: e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation Cause: null while generating code for: FUN name:onLogin visibility:private modality:FINAL <> ($this:androidx.ui.material.demos.GithubActivity, login:kotlin.String, password:kotlin.String) returnType:kotlin.Unit [suspend] $this: VALUE_PARAMETER name:<this> type:androidx.ui.material.demos.GithubActivity VALUE_PARAMETER name:login index:0 type:kotlin.String VALUE_PARAMETER name:password index:1 type:kotlin.String BLOCK_BODY
g

gildor

06/11/2019, 1:44 PM
#compose
Compose uses hacked forked version of Kotlin compiler for now to apply compiler plugin, so it should be reported there
Also probably compose issue tracker is even better place to report it
Of course it may be something not related to compose, but this code looks fine, I'd you can reproduce it on upstream version of Kotlin, you should report to Kotlin issue tracker than
v

Vladimir Ivanov

06/11/2019, 7:21 PM
I reported to compose tracker
2 Views