1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-18 16:10:26 +02:00

Fixed extern method generic arg case

This commit is contained in:
Brian Fiete 2022-02-12 15:37:57 -05:00
parent 8c79e26d40
commit 6c714bacdc
3 changed files with 26 additions and 6 deletions

View file

@ -331,6 +331,16 @@ namespace Tests
return (TOut)val;
}
static void MethodH<T, T2>(T val) where T2 : List<T>
{
}
static void MethodI<T, T2>(T val) where comptype(typeof(T2)) : List<T>
{
}
[Test]
public static void TestBasics()
{
@ -404,6 +414,7 @@ namespace Tests
Test.Assert(Conv<int...>(12.34f) == 12);
Test.Assert(Conv<int,?>(12.34f) == 12);
//MethodH(scope List<int>());
}
}