Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for overloaded functions #797

Closed
swankjesse opened this issue Dec 22, 2022 · 1 comment · Fixed by #904
Closed

Support for overloaded functions #797

swankjesse opened this issue Dec 22, 2022 · 1 comment · Fixed by #904
Labels

Comments

@swankjesse
Copy link
Contributor

I saw a crash without them:

e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering
File being compiled: /data/app/kochiku-worker/shared/build-partition/squareup/cash-treehouse/treehouse/apis/flows/src/commonMain/kotlin/com/squareup/cash/treehouse/flows/FlowsApp.kt
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47)
	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:239)
	at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:235)
Caused by: java.lang.IllegalArgumentException: No argument for parameter VALUE_PARAMETER name:parameters index:2 type:@[Contextual] okio.ByteString?:
CALL 'public open fun getScreen (path: kotlin.String, navigator: com.squareup.cash.treehouse.navigation.Navigator, parameters: @[Contextual] okio.ByteString?): app.cash.redwood.treehouse.ZiplineTreehouseUi
@swankjesse swankjesse added the bug label Dec 22, 2022
@ean5533
Copy link
Collaborator

ean5533 commented Dec 22, 2022

Example: https://github.com/squareup/cash-treehouse/pull/1394/commits/a73fdb71640dba891aeaa9afd2cc5b391c6049e8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants