mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Code completion performs 'typeCheckASTNodeAtLoc()' which ignores 'StmtChecker::ActiveLabeledStmts'. Since this is not necessary for code completions, skip an assertion to verify the correctness of ASTScope. rdar://problem/67102611
7 lines
148 B
Swift
7 lines
148 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s > /dev/null
|
|
|
|
for x in "foo" {
|
|
if x.#^A^# {
|
|
}
|
|
}
|