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

13 lines
265 B
Kotlin
Vendored

// FIR_IDENTICAL
import kotlin.native.concurrent.*
class Z(val x: Int) {
fun bar(s: String) = s + x.toString()
}
@OptIn(ObsoleteWorkersApi::class)
fun foo(x: Int) {
val worker = Worker.start()
worker.execute(TransferMode.SAFE, { "zzz" }, Z(x)::bar)
}