Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-294604: 'Implement interface' creates wrong signature for vararg method

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Apr 15, 2012 2:05:33 AM
Updated Apr 15, 2012 2:05:33 AM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem No subsystem
Affected versions No Affected versions
Fixed in build No Fixed in build
interface I
{
    void Foo(__arglist);
}

class C : I // Implement interface
{
    
}


Actual:

using System;

interface I
{
    void Foo(__arglist);
}

class C : I // error CS0535: 'C' does not implement interface member 'I.Foo(__arglist, ...)'
{
    public void Foo(RuntimeArgumentHandle @__arglist)
    {
        throw new NotImplementedException();
    }
}


Expected:

using System;

interface I
{
    void Foo(__arglist);
}

class C : I
{
    public void Foo(__arglist) // OK
    {
        throw new NotImplementedException();
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>