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

RSRP-275313: Adding class Constraint QuickFix does not apply it to interface declaration

$
0
0
Reporter Hadi Hariri (hadihariri) Hadi Hariri (hadihariri)
Created Sep 6, 2011 3:23:01 PM
Updated Apr 20, 2018 6:01:48 PM
Subsystem Quick Fixes
Assignee Alisa Afonina (alisa.afonina)
Priority Major
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
public IEnumerable<TInternal> Get<TWrapper, TInternal>(string command) where TWrapper : IDataWrapper<TInternal>
{
var response = Get<TWrapper>(command);

if (response != null)
{
return response.Data;
}
return new List<TInternal>();
}

The != highlight (as attached). Apply QuickFix. Adds class restriction to TWrapper but not to Interface.

Viewing all articles
Browse latest Browse all 106942

Trending Articles