Avatar
Avatar
Yuta Saito
@swift-5.5.3 -Xfrontend -parse-as-library func f() async { async let x = Task<Int, Never> { print("task started"); return 1 }.result } @main struct Main { static func main() async { await f() } } (edited)
task startedstderr:<stdin>:2:15: warning: initialization of immutable value 'x' was never used; consider replacing with assignment to '_' or removing it async let x = Task<Int, Never> { print("task started"); return 1 }.result ~~~~^ _ (edited)