File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 110110// RUN: %target-swift-ide-test -enable-objc-interop -code-completion -source-filename %s -code-completion-token=OMIT_KEYWORD9_LET -code-completion-keywords=false | %FileCheck %s -check-prefix=OMIT_KEYWORD4
111111// RUN: %target-swift-ide-test -enable-objc-interop -code-completion -source-filename %s -code-completion-token=OMIT_KEYWORD10 -code-completion-keywords=false | %FileCheck %s -check-prefix=WITH_PA_NO_PROTOFUNCA
112112
113+ // RUN: %target-swift-ide-test -enable-objc-interop -code-completion -source-filename %s -code-completion-token=SR2560_WHERE_CLAUSE -code-completion-keywords=false | %FileCheck %s -check-prefix=SR2560_WHERE_CLAUSE
113114// RUN: %target-swift-ide-test -enable-objc-interop -code-completion -source-filename %s -code-completion-token=HAS_THROWING -code-completion-keywords=false | %FileCheck %s -check-prefix=HAS_THROWING
114115// RUN: %target-swift-ide-test -enable-objc-interop -code-completion -source-filename %s -code-completion-token=ASSOC_TYPE1 -code-completion-keywords=false | %FileCheck %s -check-prefix=ASSOC_TYPE1
115116
@@ -523,6 +524,17 @@ class OmitKW10: ProtocolA {
523524// WITH_PA
524525}
525526
527+ protocol SR2560Proto {
528+ func foo< S : Sequence > ( x: S ) where S. Iterator. Element == Int
529+ }
530+ class SR2560Class : SR2560Proto {
531+ #^SR2560 _WHERE_CLAUSE^#
532+ }
533+
534+ // SR2560_WHERE_CLAUSE: Begin completions
535+ // SR2560_WHERE_CLAUSE: Decl[InstanceMethod]/Super: func foo<S>(x: S) where S : Sequence, S.Element == Int {|};
536+ // SR2560_WHERE_CLAUSE: End completions
537+
526538protocol HasThrowingProtocol {
527539 func foo( ) throws
528540}
You can’t perform that action at this time.
0 commit comments