Avatar
Avatar
Iceman
@swift-5.9.2 actor Foo { var values: [Int] = [] func f() { Task { await useSome(values[0]) } } } func useSome(_ v: Int) async {}
exit status: 1 with <stdin>:5:27: error: actor-isolated property 'values' cannot be passed 'inout' to 'async' function call await useSome(values[0]) ^ <stdin>:2:9: note: property declared here var values: [Int] = [] ^