Avatar
Avatar
shiz
@swift-5.6.3 actor A { func foo() {} func bar() { Task { foo() } Task { [weak self] in self?.foo() } } }
exit status: 1 with stderr:<stdin>:5:31: error: expression is 'async' but is not marked with 'await' Task { [weak self] in self?.foo() } ^~~~~~~~~~~ await <stdin>:5:31: note: calls to instance method 'foo()' from outside of its actor context are implicitly asynchronous Task { [weak self] in self?.foo() } ^