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:
parent
a67a964142
commit
16a4b36b17
2 changed files with 29 additions and 12 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue