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

RSRP-286970: False error: The constraints for type parameter 'T' of method 'A.Foo' must match the constraints for type parameter 'T' of interface method 'I.Foo'.

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Dec 16, 2011 11:00:40 PM
Updated Dec 16, 2011 11:00:40 PM
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
using System;

interface I<U>
{
    void Foo<T>() where T : struct, U;
}

class A : I<ValueType>
{
    public void Foo<T>() where T : struct
    {
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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