mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Turns out we don't always set a completion callback for some unqualified completion positions. Upgrade the check for a completion callback to a check for a completion buffer to account for this. This avoids unnecessary type-checker work as well as fixing a couple of double-type-checking crashers.
7 lines
296 B
Swift
7 lines
296 B
Swift
// {"kind":"complete","signature":"(anonymous namespace)::ConstraintWalker::walkToExprPost(swift::Expr*)"}
|
|
// RUN: %target-swift-ide-test -code-completion -batch-code-completion -skip-filecheck -code-completion-diagnostics -source-filename %s
|
|
enum a }
|
|
{
|
|
var b: a func c { switch b {
|
|
#^COMPLETE^#
|