[SR-2440] @escaping shouldn't be allowed outside of function param types #45045
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
good first issue
Good for newcomers
parser
Area → compiler: The legacy C++ parser
Additional Detail from JIRA
md5: 9b7c2291eec4b11174258156f4047a75
Issue Description:
Unless I'm mistaken,
@escaping
is meaningless unless it annotates the type of a function parameter.This works today, but I think it should be an error:
The text was updated successfully, but these errors were encountered: