1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00
This commit is contained in:
Brian Fiete 2020-02-13 07:53:11 -08:00
parent 093ae8f9c1
commit 2d3518dcd4

View file

@ -35,7 +35,23 @@ namespace Tests
val.Dispose();
}
}
[Test]
public static void TestGenericDelegates()
{
delegate void(String v) dlg = scope => StrMethod;
CallGenericDelegate(dlg);
CallGenericDelegate<String>(scope => StrMethod);
}
public static void CallGenericDelegate<T>(delegate void(T v) dlg)
{
}
public static void StrMethod(String v)
{
}
[Test]
public static void TestBasics()
{