Skip to content

Commit 8a79268

Browse files
committed
Add VariableType test for unnamed variables
1 parent 88dd082 commit 8a79268

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
let = 2
2+
let : Int = 4
3+
4+
let x: (String) -> Void = { (: String) in }
5+
6+
// RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s
7+
// CHECK: <VariableTypes>
8+
// CHECK-NEXT: (4:5, 4:6): (String) -> Void (explicit type: 1)
9+
// CHECK-NEXT: </VariableTypes>
10+

0 commit comments

Comments
 (0)