SharpLab icon indicating copy to clipboard operation
SharpLab copied to clipboard

Crashes on "generic bomb"

Open WhiteBlackGoose opened this issue 2 years ago • 4 comments

Code to repro:

using System;

Console.WriteLine(Hmh<int, string>(10));

static string Hmh<T, U>(int r)
{
    if (r == 0)
        return typeof(T).AssemblyQualifiedName;
    return Hmh<(T, U), (U, T)>(r - 1);
}

WhiteBlackGoose avatar Oct 13 '21 06:10 WhiteBlackGoose