От: | rameel | https://github.com/rsdn/CodeJam | |
Дата: | 30.04.07 20:41 | ||
Оценка: | 14 (1) |
namespace ConsoleApplication1
{
public class First[T] where T : First[T], new()
{
public static CreateInstance() : T
{
T();
}
}
public class Second : First[Second]
{
}
module Program
{
Main() : void
{
def c = Second.CreateInstance();
}
}
}
Main.n(28,3):Error: CheckSTV for ConsoleApplication1.First[ConsoleApplication1.First[ConsoleApplication1.First[ConsoleApplication1.First[...]]]] failed: cyclic type found