File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 70
70
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ERRORCONTEXT_NESTED_1 | %FileCheck %s -check-prefix=ERRORCONTEXT_NESTED_1
71
71
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ERRORCONTEXT_NESTED_2 | %FileCheck %s -check-prefix=ERRORCONTEXT_NESTED_1
72
72
73
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CURRIED_SELF_1 | %FileCheck %s -check-prefix=CURRIED_SELF_1
74
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CURRIED_SELF_2 | %FileCheck %s -check-prefix=CURRIED_SELF_1
75
+ // RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=CURRIED_SELF_3 | %FileCheck %s -check-prefix=CURRIED_SELF_1
76
+
73
77
var i1 = 1
74
78
var i2 = 2
75
79
var oi1 : Int ?
@@ -589,3 +593,16 @@ func testNestedContext() {
589
593
for _ in [ bar ( #^ERRORCONTEXT_NESTED_2 ^#) ] { }
590
594
// Same as ERRORCONTEXT_NESTED_1.
591
595
}
596
+
597
+ class TestImplicitlyCurriedSelf {
598
+ func foo( x: Int ) { }
599
+ static func test( ) {
600
+ foo( #^CURRIED_SELF_1 ^#
601
+ self . foo( #^CURRIED_SELF_2 ^#
602
+ TestImplicitlyCurriedSelf. foo( #^CURRIED_SELF_3 ^#
603
+
604
+ // CURRIED_SELF_1: Begin completions, 1 items
605
+ // CURRIED_SELF_1-DAG: Pattern/CurrModule: ['(']{#(self): TestImplicitlyCurriedSelf#}[')'][#(Int) -> ()#]{{; name=.+$}}
606
+ // CURRIED_SELF_1: End completions
607
+ }
608
+ }
You can’t perform that action at this time.
0 commit comments