dotnet/roslyn

Constant folding isn't done when interpolated string contains at least one variable

Open

#65.636 aperta il 28 nov 2022

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
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

Guida contributor