Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

NETMF is not aligned with Interface Re-implementation rules (section 13.4.6) of C# Language Specification #95

Open
@mortezag

Description

@mortezag

Consider the following code:

interface MyInterface    
{
    int MyMethod();
}

class MyBaseClass : MyInterface    
{    
    int MyInterface.MyMethod()
    {
        return 1;
    }
}

class MyClass : MyBaseClass, MyInterface
{
    int void MyMethod()
    {
        return 2;
    }
}

Now, if you run the following code:

MyInterface myInstance = new MyClass();
int value = myInstance.MyMethod();

According to C# Language Specification, value variable should have the value of 2; however, in NETMF its value is 1.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions