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

Use of java.kotlin.time.Duration fails with java.lang.IllegalStateException #351

Open
holgerbrandl opened this issue Jan 4, 2022 · 1 comment
Labels
bug Installation and functionality issues

Comments

@holgerbrandl
Copy link
Contributor

When using the new v1.6 duration APIs with

import kotlin.time.Duration.Companion.days

100.days

it fails with

Back-end (JVM) Internal error: Couldn't inline method call: days
Method: null
File being compiled: (1,5) in Line_69.jupyter-kts
The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.codegen.inline.SourceCompilerForInlineKt.getMethodNode(SourceCompilerForInline.kt:118)

Kotlin kernel v. 0.11.0.45, Kotlin v. 1.6.20-dev-6372

@ileasile ileasile added the bug Installation and functionality issues label Jan 11, 2022
@ileasile
Copy link
Member

I think it is https://youtrack.jetbrains.com/issue/KT-50516

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

No branches or pull requests

2 participants