mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This removes the distinction between argument completions and postfix expr paren completions, which was meaningless since solver-based completion. It then determines whether to suggest the entire function call pattern (with all argument labels) or only a single argument based on whether there are any existing arguments in the call. For this to work properly, we need to improve parser recovery a little bit so that it parsers arguments after the code completion token properly. This should make call pattern heuristics obsolete. rdar://84809503
5 lines
181 B
Swift
5 lines
181 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func foo(x: Int) {}
|
|
foo(: 1) // expected-error{{expected argument label before colon}} expected-error{{missing argument label 'x:' in call}}
|