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

RSRP-287423: error CS0425: The constraints for type parameter 'S' of method 'C.Foo()' must match the constraints for type parameter 'S' of interface method 'IB.Foo()'. Consider using an explicit interface implementation instead.

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Dec 28, 2011 1:19:47 AM
Updated Dec 28, 2011 1:19:47 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 IA { }

interface IB : IA
{
    void Foo<T, S>()
        where T : IB
        where S : IB, T;
}

class C : IB
{
    public void Foo<T, S>()
        where T : IB
        where S : IA, T
    {
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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