Files
kotlin-fork/compiler/testData/diagnostics/nativeTests/specialBackendChecks/nativeRef/t53.kt
T
2024-01-09 14:17:47 +00:00

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)
}