Skip to content

Add MakeDeclarationMutable code fix#10480

Merged
cartermp merged 4 commits intodotnet:mainfrom
cartermp:make-decl-mutable
Nov 18, 2020
Merged

Add MakeDeclarationMutable code fix#10480
cartermp merged 4 commits intodotnet:mainfrom
cartermp:make-decl-mutable

Conversation

@cartermp
Copy link
Copy Markdown
Contributor

@cartermp cartermp commented Nov 16, 2020

This makes #1110 a bit easier too.

Works where it should work:

image

image

And it does not trigger if the value is a parameter binding, which would be invalid F# syntax:

image

The above shows in the status bar if you try it for code like this:

type C() =
    member _.M(x: int) =
        x <- 1

let f (x: int) =
    x <- 1
    x

@cartermp cartermp added this to the 16.9 milestone Nov 17, 2020
@cartermp cartermp merged commit 31cb3b3 into dotnet:main Nov 18, 2020
@cartermp cartermp deleted the make-decl-mutable branch November 18, 2020 22:00
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants