08bc0a6bd0
^KT-61564
13 lines
255 B
Kotlin
Vendored
13 lines
255 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
@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)
|
|
}
|
|
|