Skip to content

Commit 5d04df0

Browse files
committed
[Typechecker] Add trailing space when adding the 'static' fix-it
1 parent 535364c commit 5d04df0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Sema/TypeCheckProtocol.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,8 +2106,7 @@ diagnoseMatch(ModuleDecl *module, NormalProtocolConformance *conformance,
21062106
}
21072107
diag.fixItRemove(loc);
21082108
} else {
2109-
diag.fixItInsert(witness->getAttributeInsertionLoc(true),
2110-
getTokenText(tok::kw_static));
2109+
diag.fixItInsert(witness->getAttributeInsertionLoc(true), "static ");
21112110
}
21122111
break;
21132112
}

0 commit comments

Comments
 (0)