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:
parent
e307448363
commit
2bbe66cecc
7 changed files with 108 additions and 5 deletions
|
@ -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
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue