Skip to content

Commit 588dd85

Browse files
committed
---
yaml --- r: 274943 b: refs/heads/master c: 5e25550 h: refs/heads/master i: 274941: 70ba974 274939: 7e99354 274935: 3ff73c1 274927: 30de289 274911: bae0543 274879: 3ae15bf 274815: e6099f6 274687: 00de4b1 274431: dece103
1 parent a9d284d commit 588dd85

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 97d7111fa6129101e07ca3e70acd125bad8e96f0
2+
refs/heads/master: 5e2555031508b0f76ed0e9732ae40be4c40a1bbc
33
refs/heads/master-next: 75552d2b66023907022c17dfd899aae8b198add5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/test/IDE/complete_call_arg.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ERRORCONTEXT_NESTED_1 | %FileCheck %s -check-prefix=ERRORCONTEXT_NESTED_1
7171
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=ERRORCONTEXT_NESTED_2 | %FileCheck %s -check-prefix=ERRORCONTEXT_NESTED_1
7272

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+
7377
var i1 = 1
7478
var i2 = 2
7579
var oi1 : Int?
@@ -589,3 +593,16 @@ func testNestedContext() {
589593
for _ in [bar(#^ERRORCONTEXT_NESTED_2^#)] {}
590594
// Same as ERRORCONTEXT_NESTED_1.
591595
}
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+
}

0 commit comments

Comments
 (0)