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
The following application when loaded using .NET 6.0 does not function. In particular, it will spin forever, and not finish.
using System;
using System.Collections.Generic;
using System.Collections;
namespace CuriouslyRecurringPatternThroughInterface
{
interface IGeneric<T_IGeneric>
{
}
interface ICuriouslyRecurring<T_ICuriouslyRecurring> : IGeneric<CuriouslyRecurringThroughInterface<T_ICuriouslyRecurring>>
{
}
class CuriouslyRecurringThroughInterface<T_CuriouslyRecurringThroughInterface> : ICuriouslyRecurring<T_CuriouslyRecurringThroughInterface>
{
}
class Program
{
static object _o;
static int Main(string[] args)
{
// Test that the a generic using a variant of the curiously recurring pattern involving an interface can be loaded.
_o = typeof(CuriouslyRecurringThroughInterface<int>);
return 100;
}
}
}
Description
The following application when loaded using .NET 6.0 does not function. In particular, it will spin forever, and not finish.
Configuration
.NET 6, after PR #54588
Regression?
Yes.
The text was updated successfully, but these errors were encountered: