mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Computing capture information requires a type checked AST, which we don’t have during code completion. To fix an assertion failure, don’t look for a captured `isolated` parameter while computing a closure’s actor isolation during code completion. rdar://126923558
16 lines
264 B
Swift
16 lines
264 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s
|
|
|
|
actor Foo {
|
|
func bar() {}
|
|
}
|
|
|
|
func takeClosure(_ x: () -> Void) {}
|
|
|
|
actor Foo {
|
|
func tests(myInt: Int) {
|
|
takeClosure {
|
|
myInt.#^COMPLETE^#
|
|
}
|
|
}
|
|
}
|