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

RSRP-287766: Partially open generic types are not flagged as error

$
0
0
Reporter Florian Doyon (Florian.Doyon) Florian Doyon (Florian.Doyon)
Created Jan 13, 2012 9:27:16 PM
Updated Jan 13, 2012 9:31:03 PM
Priority Normal
Type Bug
Fix versions No Fix versions
State Submitted
Assignee Unassigned
Subsystem Language - C#
Affected versions 6.1.1
Fixed in build No Fixed in build
Resharper allows partially open generic types whereas the C# compiler will flag this as: error CS1031: Type expected

var OK = typeof(Tuple<,>).MakeGenericType(typeof(string), typeof(object)); // works
var KO= typeof(Tuple<,object>).MakeGenericType(typeof(string)); // r# doesn't flag this, compier will

Viewing all articles
Browse latest Browse all 106942

Trending Articles