mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* [Parser] Preserve empty getter functions to make sure indentation inside its body still works. rdar://28049927 * Using the consistent identifier even though they are identical.
15 lines
429 B
Swift
15 lines
429 B
Swift
for i in 0...5 {
|
|
}
|
|
|
|
var someProperty: String {
|
|
|
|
}
|
|
// RUN: %sourcekitd-test -req=format -line=1 -length=1 %s >%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=2 -length=1 %s >>%t.response
|
|
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s >>%t.response
|
|
// RUN: %FileCheck --strict-whitespace %s <%t.response
|
|
|
|
// CHECK: key.sourcetext: "for i in 0...5 {"
|
|
// CHECK: key.sourcetext: "}"
|
|
// CHECK: key.sourcetext: " "
|