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