File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
test/SourceKit/CodeFormat Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ class Foo {
16
16
}
17
17
}
18
18
19
-
19
+ class Foo1 {
20
+ var foo : Int {
21
+ return 1
22
+ }
23
+ class var foo : Int {
24
+ return 1
25
+ }
26
+ }
20
27
// RUN: %sourcekitd-test -req=format -line=1 -length=1 %s >%t.response
21
28
// RUN: %sourcekitd-test -req=format -line=2 -length=1 %s >>%t.response
22
29
// RUN: %sourcekitd-test -req=format -line=3 -length=1 %s >>%t.response
@@ -34,6 +41,8 @@ class Foo {
34
41
// RUN: %sourcekitd-test -req=format -line=15 -length=1 %s >>%t.response
35
42
// RUN: %sourcekitd-test -req=format -line=16 -length=1 %s >>%t.response
36
43
// RUN: %sourcekitd-test -req=format -line=17 -length=1 %s >>%t.response
44
+ // RUN: %sourcekitd-test -req=format -line=20 -length=1 %s >>%t.response
45
+ // RUN: %sourcekitd-test -req=format -line=23 -length=1 %s >>%t.response
37
46
38
47
// RUN: FileCheck --strict-whitespace %s <%t.response
39
48
@@ -54,3 +63,5 @@ class Foo {
54
63
// CHECK: key.sourcetext: " return x"
55
64
// CHECK: key.sourcetext: " }"
56
65
// CHECK: key.sourcetext: "}"
66
+ // CHECK: key.sourcetext: " var foo: Int {"
67
+ // CHECK: key.sourcetext: " class var foo: Int {"
You can’t perform that action at this time.
0 commit comments