History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-31823
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Andrey Simanovsky
Reporter: Vladimir Reshetnikov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

'Use base type where possible' introduces unresolved symbols into the code

Created: 14 Nov 06 18:20   Updated: 13 Dec 06 19:50
Component/s: None
Fix Version/s: 3.0, 2.5.1
Security Level: Everybody (All jira users)

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 301
Fixed in build: 327


 Description  « Hide
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)
    {
    }
}


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.