Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-288051: Rename refactoring should use minimally qualified names to resolve conflicts

$
0
0
Reporter Vladimir Reshetnikov (nikov) Vladimir Reshetnikov (nikov)
Created Jan 28, 2012 4:09:52 AM
Updated Jan 28, 2012 4:09:52 AM
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
Option Strict On
Imports System.Runtime.CompilerServices

Module M
    Sub Bar(ByVal x As IC)
        x.Foo(1)
    End Sub

    <Extension>
    Sub Foo(x As IC, y As Integer)
    End Sub
End Module

Interface IB
    Sub Foo(y As Integer)
End Interface

Interface IC
    Inherits IB
    Sub Foo() ' Rename Foo to Bar
End Interface


Actual:

Option Strict On
Imports System.Runtime.CompilerServices

Module M
    Sub Bar(ByVal x As IC)
        Global.M.Foo(x, 1) ' qualifier Global.M. is redundant
    End Sub

    <Extension>
    Sub Foo(x As IC, y As Integer)
    End Sub
End Module

Interface IB
    Sub Foo(y As Integer)
End Interface

Interface IC
    Inherits IB
    Sub Bar()
End Interface


Expected:

Option Strict On
Imports System.Runtime.CompilerServices

Module M
    Sub Bar(ByVal x As IC)
      Foo(x, 1) ' OK
    End Sub

    <Extension>
    Sub Foo(x As IC, y As Integer)
    End Sub
End Module

Interface IB
    Sub Foo(y As Integer)
End Interface

Interface IC
    Inherits IB
    Sub Bar()
End Interface

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>