[SR-5051] No Code Completion within closures passed to functions when in do&class&struct scope #47627
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
code completion
Area → source tooling: code completion
source tooling
Area: IDE support, SourceKit, and other source tooling
Attachment: Download
Environment
macOS Sierra 10.12.5, Xcode Version 8.3.2 (8E2002), Swift 3.1
Additional Detail from JIRA
md5: f582ebc3279f35cc6b7e1368ac520fcc
Issue Description:
When calling a function that takes a closure from certain scopes, I don't get code completion within the closure. Here are some examples. I run in to this a lot as I lke using Then-style initialization. In addition to SR-2750, I am trying to provide some more examples here about what is working and what is not.
Copy this code to a playground (or take attached swift file). And try autocompletion of the .property in various context. It will work on top level, and in func and init, but not in do, struct and class scope.
The text was updated successfully, but these errors were encountered: