Skip to content

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Mar 26, 2020

For instance:

let globalVar = {
    func something(arg: Int) -> Int {
        #^HERE^#
    }
    return something(12)
}()

We want to consider this as a top-level completion, not a function body completion.

rdar://problem/60838686

For instance:
--
let globalVar = {
    func something(arg: Int) -> Int {
        #^HERE^#
    }
    return something(12)
}()
--
We want to consider this as a top-level completion, not a function body
completion.

rdar://problem/60838686
@rintaro
Copy link
Member Author

rintaro commented Mar 26, 2020

@swift-ci Please smoke test

@rintaro rintaro requested a review from benlangmuir March 26, 2020 09:18
@rintaro rintaro merged commit 1985cfd into swiftlang:master Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants