mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 23:34:10 +02:00
Allow for Method<T, T2>(T val) where T : IEnumerable<T2>
matching
This commit is contained in:
parent
df1404e14b
commit
9510faafca
2 changed files with 78 additions and 9 deletions
|
@ -226,6 +226,16 @@ namespace Tests
|
|||
|
||||
}
|
||||
|
||||
static int MethodE<T, T2>(T val) where T : IEnumerable<T2>
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int MethodF<T>(IEnumerable<T> val)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
[Test]
|
||||
public static void TestBasics()
|
||||
{
|
||||
|
@ -267,6 +277,9 @@ namespace Tests
|
|||
Test.Assert(LibA.LibA2.CheckEq(cd, cd2));
|
||||
|
||||
Test.Assert(ClassE.Instance.CreateSystem<int>() == 999);
|
||||
|
||||
MethodE(list);
|
||||
MethodF(list);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue