Skip to content

Commit 88dd082

Browse files
committed
Add VariableType test case for backticked names
1 parent b2fb9e4 commit 88dd082

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/SourceKit/VariableType/basic.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func foo() {
1919
var local = 5
2020
}
2121

22+
let `else` = 3
23+
2224
// RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s
2325
// CHECK: (1:5, 1:6): Int (explicit type: 1)
2426
// CHECK: (2:5, 2:6): String (explicit type: 0)
@@ -30,3 +32,4 @@ func foo() {
3032
// CHECK: (14:7, 14:8): [Int : Int] (explicit type: 1)
3133
// CHECK: (15:7, 15:8): (Int) -> Int (explicit type: 1)
3234
// CHECK: (19:7, 19:12): Int (explicit type: 0)
35+
// CHECK: (22:5, 22:11): Int (explicit type: 0)

0 commit comments

Comments
 (0)