Avatar
Avatar
koher
@swift-6.0.3 -swift-version 5 -strict-concurrency=complete class R { func foo() async {} } @MainActor func main() async { Task { @MainActor () in let r = R() await r.foo() } }
swift60 BOT 8/9/2024 7:35 AM
<stdin>:5:11: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode 3 | @MainActor 4 | func main() async { 5 | Task { @MainActor () in | `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode 6 | let r = R() 7 | await r.foo()