Reporter | 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