1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed dynamic cast from class/interface constraint

This commit is contained in:
Brian Fiete 2020-11-17 17:37:09 -08:00
parent a67a964142
commit 16a4b36b17
2 changed files with 29 additions and 12 deletions

View file

@ -190,6 +190,11 @@ namespace Tests
}
}
public void TestCast<T, TI>(T val) where T : class where TI : interface
{
TI iface = val as TI;
}
[Test]
public static void TestBasics()
{