Skip to content

Interfaces aren't inherited #631

Closed
nanoframework/metadata-processor
#110
@adaslesniak

Description

@adaslesniak

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

  1. Everything is clearly shown in attached example: https://github.com/adaslesniak/nf_bugs

  2. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions