Files
kotlin-fork/kotlin-native/backend.native/tests/compilerChecks/t51.kt
T
2023-06-22 16:22:59 +00:00

12 lines
238 B
Kotlin

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