Reporter | 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