-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-Compilers
Milestone
Description
Version: .NET SDK 9.0.304
Code snippet to reproduce:
BadFunc(
message: $"abc",
value2: 0,
value1: 1);
static void BadFunc(
ref InterpolatedStringHandler message,
in int? value1,
int? value2)
{
}
[System.Runtime.CompilerServices.InterpolatedStringHandler]
public ref struct InterpolatedStringHandler
{
public InterpolatedStringHandler(
int literalLength,
int formattedCount)
{
}
public void AppendLiteral(string value)
{
}
}
Expected Behavior: Doesn't crash
Actual Behavior: Crashes with System.InvalidProgramException: 'Common Language Runtime detected an invalid program.'
Metadata
Metadata
Assignees
Labels
4 - In ReviewA fix for the issue is submitted for review.A fix for the issue is submitted for review.Area-Compilers