dotnet/roslyn
Auf GitHub ansehen'Convert to raw string without leading whitespace' erroneously strips trailing whitespace
Open
#62.376 geöffnet am 5. Juli 2022
Area-IDEBughelp wanted
Repository-Metriken
- Stars
- (20.414 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)
Beschreibung
Version Used: 17.3.0-p2.0
This is not the semantics change described by the light bulb fix.
var whereClause = "Age >= 18";
var x = @"
select FirstName, LastName
from dbo.People
where " + whereClause;
💡 "Convert to raw string without leading whitespace (may change semantics)":
var whereClause = "Age >= 18";
var x = """
select FirstName, LastName
from dbo.People
where
""" + whereClause;
The resulting string contains whereAge >= 18 instead of where Age >= 18.