1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 23:04:09 +02:00

Fixed ability to call GetType on an interface reference

This commit is contained in:
Brian Fiete 2020-11-18 12:07:18 -08:00
parent e6405e49c6
commit dcacf87d66
2 changed files with 9 additions and 2 deletions

View file

@ -127,6 +127,9 @@ namespace Tests
Test.Assert(UseIA2((IFaceA)cba) == 60);
Test.Assert(UseIA2(cc) == 70);
Test.Assert(UseIA2(cca) == 70);
IFaceA ifa = cba;
Test.Assert(ifa.GetType() == typeof(ClassB));
}
////