dotnet/roslyn
EE: "Internal error in C# compiler" reported for typeof(T?)
Offen
#47.648 geöffnet am 12.09.2020
Area-InteractiveBugFeature - Nullable Type ParametersInteractive-Debugginghelp wanted
Repository-Metriken
- Stars
- (20.414 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)
Beschreibung
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