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 abc44ef commit a810908Copy full SHA for a810908
lib/Parse/Lexer.cpp
@@ -895,13 +895,9 @@ void Lexer::lexDollarIdent() {
895
}
896
897
if (CurPtr == tokStart + 1) {
898
- // It is always an error to see a standalone '$' when not in Swift 3
899
- // compatibility mode.
900
- if (!LangOpts.isSwiftVersion3()) {
901
- // Offer to replace '$' with '`$`'.
902
- diagnose(tokStart, diag::standalone_dollar_identifier)
903
- .fixItReplaceChars(getSourceLoc(tokStart), getSourceLoc(CurPtr), "`$`");
904
- }
+ // It is an error to see a standalone '$'. Offer to replace '$' with '`$`'.
+ diagnose(tokStart, diag::standalone_dollar_identifier)
+ .fixItReplaceChars(getSourceLoc(tokStart), getSourceLoc(CurPtr), "`$`");
905
return formToken(tok::identifier, tokStart);
906
907
0 commit comments