dotnet/roslyn
EE: "Internal error in C# compiler" reported for typeof(T?)
オープン
#47,648 opened on 2020/09/12
Area-InteractiveBugFeature - Nullable Type ParametersInteractive-Debugginghelp wanted
Repository metrics
- Stars
- (20,414 個のスター)
- PR merge metrics
- (平均マージ 6d 17h) (30d で 256 merged PRs)
説明
Debug the following:
#nullable enable
class Program
{
static void F<T, U>(T t, U u)
where T : class
{
System.Diagnostics.Debugger.Break();
}
static void Main(string[] args)
{
F("", "");
}
}
At the breakpoint, evaluate either typeof(T?) or typeof(U?) in the EE.
Result: Internal error in the C# compiler