40
40
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_14 | %FileCheck %s -check-prefix=NO_OPERATORS
41
41
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_15 | %FileCheck %s -check-prefix=NO_OPERATORS
42
42
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_16 | %FileCheck %s -check-prefix=NO_OPERATORS
43
- // RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_17 | %FileCheck %s -check-prefix=NO_OPERATORS
43
+ // RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_17 | %FileCheck %s -check-prefix=VOID_OPERATORS
44
44
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_18 | %FileCheck %s -check-prefix=NO_OPERATORS
45
45
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_19 | %FileCheck %s -check-prefix=EMPTYCLASS_INFIX
46
46
// RUN: %target-swift-ide-test -code-completion -source-filename=%s -code-completion-token=INFIX_20 | %FileCheck %s -check-prefix=NO_OPERATORS
@@ -244,6 +244,7 @@ func testInfix11() {
244
244
S2#^INFIX_11^#
245
245
}
246
246
// NO_OPERATORS-NOT: Decl[InfixOperatorFunction]
247
+
247
248
func testInfix12( ) {
248
249
P#^INFIX_12^#
249
250
}
@@ -259,9 +260,20 @@ func testInfix15<T: P where T.T == S2>() {
259
260
func testInfix16< T: P where T. T == S2 > ( ) {
260
261
T . foo#^INFIX_16^#
261
262
}
263
+
262
264
func testInfix17( x: Void ) {
263
265
x#^INFIX_17^#
264
266
}
267
+
268
+ // VOID_OPERATORS: Begin completions
269
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: != {#()#}[#Bool#]; name=!= ()
270
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: == {#()#}[#Bool#]; name=== ()
271
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: <= {#()#}[#Bool#]; name=<= ()
272
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: >= {#()#}[#Bool#]; name=>= ()
273
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: < {#()#}[#Bool#]; name=< ()
274
+ // VOID_OPERATORS-DAG: Decl[InfixOperatorFunction]/OtherModule[Swift]: > {#()#}[#Bool#]; name=> ()
275
+ // VOID_OPERATORS: End completions
276
+
265
277
func testInfix18( x: ( S2 , S2 ) {
266
278
x#^INFIX_18^#
267
279
}
0 commit comments