[SR-15052] Improve diagnostics around async let + AsyncSequence #57379
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
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: 71b51e349065e8bfc7ac314c05c57831
Issue Description:
Based on https://bugs.swift.org/browse/SR-15049
For this, I don't understand what autoclosure is being referred to. Even so, say I pay attention to the first warning and replace the name with '_'. This leads to
It's not clear why async let requires explicit
try
orawait
on the RHS. After all, the following code compiles without errors and explicittry
orawait
:The text was updated successfully, but these errors were encountered: