File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2318,15 +2318,19 @@ void PrintAST::visitPatternBindingDecl(PatternBindingDecl *decl) {
2318
2318
2319
2319
if (anyVar)
2320
2320
printDocumentationComment (anyVar);
2321
- if (decl->isStatic ())
2322
- printStaticKeyword (decl->getCorrectStaticSpelling ());
2323
2321
2324
2322
// FIXME: PatternBindingDecls don't have attributes themselves, so just assume
2325
2323
// the variables all have the same attributes. This isn't exactly true
2326
2324
// after type-checking, but it's close enough for now.
2327
2325
if (anyVar) {
2328
2326
printAttributes (anyVar);
2329
2327
printAccessibility (anyVar);
2328
+ }
2329
+
2330
+ if (decl->isStatic ())
2331
+ printStaticKeyword (decl->getCorrectStaticSpelling ());
2332
+
2333
+ if (anyVar) {
2330
2334
Printer << (anyVar->isSettable (anyVar->getDeclContext ()) ? " var " : " let " );
2331
2335
} else {
2332
2336
Printer << " let " ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ extension FinalTests {
78
78
set { }
79
79
}
80
80
81
- // CHECK: static @objc var x
81
+ // CHECK: @objc static var x
82
82
static var x : Int = 0
83
83
84
84
// CHECK: @objc static func bar
You can’t perform that action at this time.
0 commit comments