Files
kotlin-fork/compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/inline/recursionCycleLambda.kt
T
Alexander Korepanov be4f6beddb [JS Tests] Prepare JS tests for testing backend diagnostics
- Introducing a backend diagnostic handler.
 - Moving JS diagnostic tests from test-common to
   js.test to avoid circular module dependencies.

^KT-61886 Fixed
2023-09-13 12:19:15 +00:00

11 lines
254 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// TODO: fix in KT-61881
// !DIAGNOSTICS: -NOTHING_TO_INLINE
// FIR_IDENTICAL
inline fun f(): Unit = <!INLINE_CALL_CYCLE!>g()<!>
inline fun g(): Unit = h { <!INLINE_CALL_CYCLE!>f()<!> }
inline fun h(fn: ()->Unit): Unit = fn()