1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Circular dependency checking between generic constraints

This commit is contained in:
Brian Fiete 2022-04-25 17:53:54 -07:00
parent e307448363
commit 2bbe66cecc
7 changed files with 108 additions and 5 deletions

View file

@ -109,5 +109,24 @@ namespace IDETest
TestPreGen<List<int>>();
Method7<int>(); //FAIL The type 'int' must be a reference type in order to use it as parameter 'comptype(typeof(T))' for 'IDETest.Generics.Method7<int>()'
}
public static void CircDepMethod<T, T2>() where T : T2 where T2 : T //FAIL
{
}
class CircDep<T> where T : T //FAIL
{
}
}
}
namespace System.Collections
{
extension List<T> //FAIL
where T : T
{
}
}