dotnet/roslyn
Constant folding isn't done when interpolated string contains at least one variable
Aperta
#65.636 aperta il 28 nov 2022
Area-Compilershelp wanted
Metriche repository
- Star
- (20.414 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
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