Skip to content

Renaming doesn't work properly for interface members #15371

@psfinaki

Description

@psfinaki

Demo:

renamingbug.mp4

Code:

type IInterface1 = 
    abstract member Method1 : int 

type IInterface2 = 
    abstract member Method2 : int 


type internal SomeType() =
    
    interface IInterface1 with
        member _.Method1 =
            42
        
    interface IInterface2 with
        member this.Method2 =
            (this :> IInterface1).Method1

Expected behavior
Method1 is renamed everywhere.
Actual behavior

Known workarounds

Rename manually, hah.

Metadata

Metadata

Assignees

Labels

Area-LangService-FindAllReferencesFind all references across projects and solutionsArea-VS-EditorVS editor support for F# code, not covered elsewhereBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions