blob: 0df595b814c12d2af326cf425a4358597a61526a [file] [log] [blame]
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=POUND_EXPR_1 | %FileCheck %s -check-prefix=POUND_EXPR_STRINGCONTEXT
// REQUIRES: objc_interop
func use(_ str: String) -> Bool {}
func test1() {
_ = use(##^POUND_EXPR_1^#)
}
// POUND_EXPR_STRINGCONTEXT: Begin completions, 2 items
// POUND_EXPR_STRINGCONTEXT-NOT: available
// POUND_EXPR_STRINGCONTEXT-DAG: Keyword/ExprSpecific: selector({#@objc method#}); name=selector(@objc method)
// POUND_EXPR_STRINGCONTEXT-DAG: Keyword/ExprSpecific: keyPath({#@objc property sequence#}); name=keyPath(@objc property sequence)
// POUND_EXPR_STRINGCONTEXT: End completions