Files
swift-mirror/validation-test/IDE/crashers_2_fixed/0030-arg-completion-no-locator.swift
Alex Hoppen f538d33e5f [CodeCompletion][Sema] Migrate CallArgurment position completion to the solver-based implementation
This hooks up call argument position completion to the typeCheckForCodeCompletion API to generate completions from all the solutions the constraint solver produces (even those requiring fixes), rather than relying on a single solution being applied to the AST (if any).

Co-authored-by: Nathan Hawes <nathan.john.hawes@gmail.com>
2022-03-17 15:15:54 +01:00

16 lines
381 B
Swift

// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE
@dynamicMemberLookup public struct Binding<Value> {
subscript<Subject>(dynamicMember keyPath: WritableKeyPath<Value, Subject>) -> Binding<Subject> {
fatalError()
}
}
struct Foo {
var bar: Binding<[String]>
func test(index: Int) {
_ = bar[#^COMPLETE^#index]
}
}