08bc0a6bd0
^KT-61564
12 lines
217 B
Kotlin
Vendored
12 lines
217 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
import kotlin.native.ref.*
|
|
|
|
class C(val x: Int) {
|
|
fun bar(y: Int) = println(x + y)
|
|
}
|
|
|
|
@OptIn(kotlin.experimental.ExperimentalNativeApi::class)
|
|
fun foo(x: Int) {
|
|
createCleaner(42, C(x)::bar)
|
|
}
|