[SR-15247] not possible to create async let
task with _
identifier
#57569
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
N/A
Additional Detail from JIRA
md5: 0dcc9319b5abf2f52629c4604dad2425
Issue Description:
anonymous `async let` tasks, such as
currently fail to compile, even though SE-0317 says this should be legal:
> Special attention needs to be given to the
async let _ = ...
form of declarations. This form is interesting because it creates a child-task of the right-hand-side initializer, however it actively chooses to ignore the result. Such a declaration (and the associated child-task) will run and be awaited-on implicitly, as the scope it was declared in is about to exit — the same way as an unusedasync let
declaration would be.The text was updated successfully, but these errors were encountered: