1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 07:15:59 +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

@ -99,9 +99,15 @@ namespace IDETest
TestGen(a); //FAIL Unable to determine generic argument 'TItem'
}
static void Method7<T>() where T : var where comptype(typeof(T)) : class
{
}
public static void TestGenBug()
{
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>()'
}
}
}