File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 97d7111fa6129101e07ca3e70acd125bad8e96f0
2
+ refs/heads/master: 5e2555031508b0f76ed0e9732ae40be4c40a1bbc
3
3
refs/heads/master-next: 75552d2b66023907022c17dfd899aae8b198add5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
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