dotnet/roslyn
Ver no GitHub'Convert to raw string without leading whitespace' erroneously strips trailing whitespace
Open
#62.376 aberto em 5 de jul. de 2022
Area-IDEBughelp wanted
Métricas do repositório
- Stars
- (20.414 stars)
- Métricas de merge de PR
- (Mesclagem média 6d 17h) (256 fundiu PRs em 30d)
Description
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.