https://kotlinlang.org logo
#random
Title
# random
k

Klitos Kyriacou

06/14/2022, 2:51 PM
I've just experienced the following crash in the Kotlin REPL. Is this a known issue?
Copy code
$ kotlin
Welcome to Kotlin version 1.7.0 (JRE 17.0.3+7-Ubuntu-0ubuntu0.20.04.1)
Type :help for help, :quit for quit
>>> 
>>> import kotlin.time.Duration.Companion.nanoseconds
>>> 1.nanoseconds
exception: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call: nanoseconds
Method: null
File being compiled: (1,3) in /Line_2.kts
The root cause java.lang.IllegalStateException was thrown at: org.jetbrains.kotlin.codegen.inline.SourceCompilerForInlineKt.getMethodNode(SourceCompilerForInline.kt:118)
i

ilya.gorbunov

07/20/2022, 7:56 PM
Not sure if it is known or not, but it seems to be fixed in recent builds of coming Kotlin 1.7.20
👍 1