Skip to content

Inline rename: symbol duplicated when it's a generic type parameter #4231

@cartermp

Description

@cartermp
type Record = { IntVal: int; StringVal: string }

[<AbstractClass>]
type AbstractFoo<'T>() =
    abstract member Foo: 'T -> 'T

type C() =
    inherit AbstractFoo<Record>()
    override __.Foo(r) = { r with IntVal = 12 }

Rename Record at either the definition or use site:

rename-fail

Info:

  • .NET Framework 4.6.1 project
  • VS 15.6 Update 2
  • VF# tools 15.4.1.17112103

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-LangService-APIBugImpact-Medium(Internal MS Team use only) Describes an issue with moderate impact on existing code.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions