[SR-14074] Calling async functions without async produces incorrect diagnostic #56463
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
concurrency
Feature: umbrella label for concurrency language features
Environment
Xcode 12.3, swift-DEVELOPMENT-SNAPSHOT-2021-01-19-a, 2020 iMac i9, macOS command line tool
Additional Detail from JIRA
md5: b8d957bcfa7a07a895e9a145a8df7793
is duplicated by:
Issue Description:
There appear to have been previous attempts at improving the diagnostic produced when calling async functions without the async keyword. However, this behavior seems to have regressed (or I'm in the wrong context).
This code:
Produces the diagnostic "'async' in a function that does not support concurrency". If I understand correctly it should instead say that the async keyword is required and offer a fixit to add it.
The text was updated successfully, but these errors were encountered: