Reporter | Vladimir Reshetnikov (nikov) |
---|---|
Created | Dec 30, 2011 1:22:13 AM |
Updated | Jan 10, 2012 11:06:24 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.Collections.Generic; class A { static void Foo<T, S>(T x) where T : IList<S> { var y = x.Count; } }
Extract method from 'x.Count'.
Actual result:
using System.Collections.Generic; class A { static void Foo<T, S>(T x) where T : IList<S> { var y = Count<T, S>(x); } private static int Count<T, S>(T x) where T : IList<S> where T : IList<S> { return x.Count; } }
Expected:
using System.Collections.Generic; class A { static void Foo<T, S>(T x) where T : IList<S> { var y = Count<T, S>(x); } private static int Count<T, S>(T x) where T : IList<S> { return x.Count; } }