dotnet / dotnet/fsharp

Interface renaming works weirdly in some edge cases

Open
#15,399 7 comments 1 reaction 1 assignee Claimed by @0101 View on GitHub
Area-LangService-RenameSymbol Bug Impact-Medium Tracking-External
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

WTF:

https://github.com/dotnet/fsharp/assets/5451366/779f4ddb-a6a9-4258-8c6e-d0573b1a6f67

WTF!!!!

https://github.com/dotnet/fsharp/assets/5451366/8f5f2d53-9d8e-4c05-a977-ed4cfd19fa98

Code:
```fsharp
type IFoo = abstract member Bar : unit -> unit

type Foo() = interface IFoo with member __.Bar () = ()

let foo = Foo() :> IFoo
```

One of the weirdest things I have seen in VS. Reproduces only on the last case. VS crash is caused when I try to move the cursor in the renaming window using the mouse.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.