26c1098a4f
* Fix objects in inline functions and lambdas: * Add common lowerings used in K/JS and K/Native * Fix inline lambda call detection logic in presence of additional casts Merge-request: KT-MR-8791 Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com>
13 lines
197 B
Kotlin
Vendored
13 lines
197 B
Kotlin
Vendored
// FILE: 1.kt
|
|
class E<T>(val x: T) {
|
|
inner class Inner {
|
|
inline fun foo(): T = x
|
|
}
|
|
}
|
|
|
|
// FILE: 2.kt
|
|
|
|
inline class IC(val s: String)
|
|
|
|
fun box(): String = E(IC("OK")).Inner().foo().s
|