[SR-11938] @autoclosure allowed on non-function types in non-parameter positions #54357
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.2-dev (Swift 0585eb0)
Target: x86_64-apple-darwin19.0.0
Additional Detail from JIRA
md5: 56731c3b51e1a4985c501276a2250cb5
Issue Description:
The following all compile:
But we should be rejecting the
@autoclosure
attributes for not being in a parameter position and not being applied to function types.The text was updated successfully, but these errors were encountered: