Description
Details about Problem
nanoFramework area: ( Visual Studio extension | Other tools )
VS version: 2017 v 15.9.24
VS extension version: 2017.2.0.17
Description
Information about implemented interfaces isn't kept.
Detailed repro steps so we can see the same problem
-
Everything is clearly shown in attached example: https://github.com/adaslesniak/nf_bugs
-
Code doesn't find that object is implementing some interface. The same instance once returns true (that it is IInterface) and other times not, depending to what we cast it before. Couldn't reproduce it if everything was in one project, only happened if Interface and BaseClass were defined in separate project. (all projects are in the same solution linked above)
...
Expected behaviour
if MyClass is IInterface
then (myClass as object) is IInterface should be true