mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
Otherwise, the generated bytecode is unnecessarily suboptimal in some (arguably weird) cases. In the JVM backend, this was an accidental regression in #3260, as I had not noticed that effectively inline-only functions were handled by a separate branch in FunctionCodegen. In JVM_IR, I'm pretty sure the redundant markers have always been there as `isSuspensionPoint` in ExpressionCodegen never checked for effectively-inline-only-ness.
5 lines
117 B
Kotlin
Vendored
5 lines
117 B
Kotlin
Vendored
// WITH_COROUTINES
|
|
// TREAT_AS_ONE_FILE
|
|
inline suspend fun <reified T> f(x: suspend () -> T) = x()
|
|
// 0 InlineMarker
|