Project
ReSharper
Priority
Show-stopper
Type
Bug
Fix versions
2.5.1, 3.0
State
Fixed
Assignee
Andrey Simanovsky
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Vladimir Reshetnikov
    5 years ago (14 Nov 2006 19:20)
  • Updated by   Vladimir Reshetnikov
    5 years ago (13 Dec 2006 20:50)
  • Jira: RSRP-31823
    (history, comments)
 
RSRP-31823 'Use base type where possible' introduces unresolved symbols into the code
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
using StringHash = System.Collections.Generic.Dictionary<string, string>;

public class Stuff
{
    static void Foo(StringHash.Enumerator she)
    {
    }
}


Put the caret onto 'Enumerator' and apply 'Use base type where possible'.
Select generic interface 'IEnumerator<T>'.
Unresolved symbols are intoduced into the code.

using System.Collections.Generic;
using StringHash = System.Collections.Generic.Dictionary<string, string>;

public class Stuff
{
    // error CS0246: The type or namespace name 'TKey' could not be found (are you missing a using directive or an assembly reference?)
    // error CS0246: The type or namespace name 'TValue' could not be found (are you missing a using directive or an assembly reference?)
    static void Foo(IEnumerator<KeyValuePair<TKey, TValue>> she)
    {
    }
}


Issue was closed
Comments (0)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Issue has no comments