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

RSRP-287529: error CS0425: The constraints for type parameter 'T' of method 'Base.Foo(int)' must match the constraints for type parameter 'T' of interface method 'IFace.Foo(int)'. Consider using an explicit interface implementation instead.

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Dec 31, 2011 4:13:46 AM
Updated Dec 31, 2011 4:13:46 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 IFace
{
    void Foo<T>(int x) where T : class;
}

class Base<S>
{
    public virtual void Foo<T>(int x) { }
    public virtual void Foo<T>(S x) where T : class { }
}

class Derived : Base<int>, IFace
{
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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