Avatar
Avatar
kntk
@swift-5.10 @swift-5.9.2 struct Box {} struct AsyncBox {} func f(_ a: Box) { print("sync") } func f(_ a: AsyncBox) async { print("async") } await f(.init())
swift59 BOT 4/4/2024 5:47 PM
sync<stdin>:11:1: warning: no 'async' operations occur within 'await' expression await f(.init()) ^