Repro
Console.WriteLine(new G<string>().M());
class G<T>
{
public object M()
{
return new G<List<T>>();
}
}
Actual result:
AOT analysis warning IL3054: [repro]G<System.Collections.Generic.List<System.Collections.Generic.List<Syste m.Collections.Generic.List<System.Collections.Generic.List<string>>>>>: Generic expansion to 'G<List<List<Lis t<List<List<String>>>>>>' was aborted due to generic recursion.
Expected result:
No warning
Context: #85176 (comment)