We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2fb9e4 commit 88dd082Copy full SHA for 88dd082
test/SourceKit/VariableType/basic.swift
@@ -19,6 +19,8 @@ func foo() {
19
var local = 5
20
}
21
22
+let `else` = 3
23
+
24
// RUN: %sourcekitd-test -req=collect-var-type %s -- %s | %FileCheck %s
25
// CHECK: (1:5, 1:6): Int (explicit type: 1)
26
// CHECK: (2:5, 2:6): String (explicit type: 0)
@@ -30,3 +32,4 @@ func foo() {
30
32
// CHECK: (14:7, 14:8): [Int : Int] (explicit type: 1)
31
33
// CHECK: (15:7, 15:8): (Int) -> Int (explicit type: 1)
34
// CHECK: (19:7, 19:12): Int (explicit type: 0)
35
+// CHECK: (22:5, 22:11): Int (explicit type: 0)
0 commit comments