Skip to content

Commit f6cad5f

Browse files
committed
Add a regression test for SR-2560
1 parent bf909ca commit f6cad5f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/IDE/complete_override.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
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

@@ -511,6 +512,17 @@ class OmitKW10: ProtocolA {
511512
// WITH_PA
512513
}
513514

515+
protocol SR2560Proto {
516+
func foo<S : Sequence>(x: S) where S.Iterator.Element == Int
517+
}
518+
class SR2560Class: SR2560Proto {
519+
#^SR2560_WHERE_CLAUSE^#
520+
}
521+
522+
// SR2560_WHERE_CLAUSE: Begin completions
523+
// SR2560_WHERE_CLAUSE: Decl[InstanceMethod]/Super: func foo<S>(x: S) where S : Sequence, S.Element == Int {|};
524+
// SR2560_WHERE_CLAUSE: End completions
525+
514526
protocol HasThrowingProtocol {
515527
func foo() throws
516528
}

0 commit comments

Comments
 (0)