You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
InvalidProgramException on string interpolation #17719
Activity
vzarytovskii commentedon Sep 13, 2024
Yes, we should probably disallow byreflikes when we work with interpolation until we have good escape analysis.
T-Gro commentedon Sep 13, 2024
Workaround: Adding "AsSpan()" at the callsite fixes the runtime error:
https://sharplab.io/#v2:DYLgZgzgNAJiDUAfA9gBwKYDsAEBlAnhAC7oC2AsAFBVH4bYBiyyAFAJTYC8VV2f2wdEWwQARlzyESpAHQAVdAA8iM3EQBOAS0wBzAEIBXTcBjp17HpX7ZSZUWewB9GXoCG5iCEnEyMgErorjAA8pjA+LiorpgAPADGABbuAHwcnCKiMgCCqBiYMCwQHIjJ2Jo6mMjq6JaCwmDMEkysbFR12A3IEBIARJ09VJ0u7iwAJD0A3p0QAL5l3aLuPdkQkdHsbEA==
vzarytovskii commentedon Sep 13, 2024
Also
<LangVersion>8</LangVersion>fixes itFix dotnet#17719
Fix #17719 (#17722)