Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Implicit interface implementations for overloaded methods are not converted correctly to VB #208

Open
@dgrunwald

Description

@dgrunwald

SD-1832, originally created on 7/28/2011 22:53:41 by Daniel Grunwald

http://community.sharpdevelop.net/forums/t/13616.aspx

given the C# interface and class:

    public interface MyInterface
    {

        void Method1(object test);
        void Method1(string test);
        void Method2(object test2);
        void Method2(string test2);
        void Method2(int test2);
                
    }

    public class MyClass : MyInterface
    {

        public void Method1(object test) {}
        public void Method1(string test) {}
        public void Method2(string test) {}        
        public void Method2(object test) {}        
        public void Method2(int test) {}        
        
    }

 

The conversion gives

Public Class [MyClass]
    Inherits MyInterface

    Public Sub Method1(test As Object) Implements MyInterface.Method1

    End Sub

    Public Sub Method1(test As String)

    End Sub

    Public Sub Method2(test As String) Implements MyInterface.Method2

    End Sub

    Public Sub Method2(test As Object)

    End Sub

    Public Sub Method2(test As Integer)

    End Sub

End Class

 

Method 1 string overload, Method 2 Object overload and Method2 Integer
overload are missing the needed implements statement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions