[SR-11440] Incorrect application of function builder on call of subscript result #53841
Labels
accepts invalid
Bug: Accepts invalid
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.1-dev (LLVM c5340df2d1, Swift 6ffdccf4b4)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: 62d9a4e4d19717f001e060f21a09d60a
Issue Description:
The following incorrectly compiles:
However it shouldn't compile because we shouldn't be performing the function builder transform for the second closure argument passed, as this is passed to the function returned from the subscript.
The text was updated successfully, but these errors were encountered: