swift
5f8fec53 - [Sema] Correct 'await' insertion fixIt

Commit
1 year ago
[Sema] Correct 'await' insertion fixIt When using shorthand syntax for optional binding, if the variable we are binding is accessed asynchronously, provide an insertion fixIt of the form: ' = await (identifier)'. Previously, we would suggest only adding the 'await' which resulted in an error since the identifier is required.
Author
James Brown
Committer
James Brown
Parents
  • lib/Sema
    • File
      TypeCheckEffects.cpp
  • test/expr/unary
    • File
      async_await.swift