Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Oct 5, 2006 10:11:39 AM |
Updated | Nov 30, 2011 7:24:47 PM |
Resolved | Nov 30, 2011 7:24:47 PM |
Priority | Normal |
Type | Bug |
Fix versions | Mirabile Futurum |
State | Fixed |
Assignee | Evgeny Pasynkov (pasynkov) |
Subsystem | Code Analysis |
Affected versions | No Affected versions |
Fixed in build | 6.1.19.99 |
using System; class Stuff { static void Swap(TypedReference a, TypedReference b) { } }
Try to extract class from parameters.
using System; class Stuff { static void Swap(Param param) { } } internal class Param { private readonly TypedReference _a; // error CS0610: Field or property cannot be of type 'System.TypedReference' private readonly TypedReference _b; // error CS0610: Field or property cannot be of type 'System.TypedReference' public Param(TypedReference a, TypedReference b) { _a = a; _b = b; } public TypedReference A // error CS0610: Field or property cannot be of type 'System.TypedReference' { get { return _a; } } public TypedReference B // error CS0610: Field or property cannot be of type 'System.TypedReference' { get { return _b; } } }
ReSharper does not detect these errors.
Also, error CS0306: The type 'System.TypedReference' may not be used as a type argument, is not detected