dotnet/roslyn
Vedi su GitHubConstant folding isn't done when interpolated string contains at least one variable
Open
#65.636 aperta il 28 nov 2022
Area-Compilershelp wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
Version Used: Not sure, whatever sharplab/Default is at.
Steps to Reproduce:
Explained in this sharplab snippet
Expected Behavior:
The left side of the string is constant folded in the optimized version.
Actual Behavior:
The left side of the string is not constant folded in the optimized version, generating InterpolatedStringHandler operations for what are constant strings