dotnet/roslyn

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

Aberta

#65.636 aberto em 28 de nov. de 2022

 (2 comentários) (0 reação) (0 responsável)C# (4.257 forks)batch import
Area-Compilershelp wanted

Métricas do repositório

Stars
 (20.414 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador