mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We don't actually want to skip non-type contexts here, since we should only be showing override completions in the type context itself. This was pretty obscure to hit in practice, but I noticed it while fixing the crasher.
6 lines
294 B
Swift
6 lines
294 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | FileCheck %s
|
|
enum b:a{var f={static#^A^#
|
|
// FIXME: we shouldn't back the parser to the beginning of the line, it leads
|
|
// to ridiculous override completions like this.
|
|
// CHECK-NOT: Decl{{.*}}/Super
|