Skip to content

Commit 748f60d

Browse files
committed
Add wildcard parameter case to VariableType test
1 parent e547c06 commit 748f60d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/SourceKit/VariableType/params.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ let z = { (param: String) in
88
param.count
99
}
1010

11+
let w: (String, Int) -> Void = { (_, x) in }
12+
1113
// RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s
1214
// CHECK: (1:10, 1:15): Int (explicit type: 1)
1315
// CHECK: (5:5, 5:6): (String) -> Void (explicit type: 1)
1416
// CHECK: (5:29, 5:34): String (explicit type: 0)
1517
// CHECK: (7:5, 7:6): (String) -> Int (explicit type: 0)
1618
// CHECK: (7:12, 7:17): String (explicit type: 1)
19+
// CHECK: (11:35, 11:36): String (explicit type: 0)
20+
// CHECK: (11:38, 11:39): Int (explicit type: 0)

0 commit comments

Comments
 (0)