Avatar
Avatar
kntk
@swift-6.0.3 -swift-version 6 -strict-concurrency=complete class Foo { var value = 0 } actor Bar { func useFoo(foo: sending Foo) { Task { self foo.value += 1 } foo.value += 1 } } (edited)
<stdin>:7:13: warning: expression of type 'Bar' is unused 5 | func useFoo(foo: sending Foo) { 6 | Task { 7 | self | `- warning: expression of type 'Bar' is unused 8 | foo.value += 1 9 | } (edited)