Skip to content

Commit

Permalink
FSharpLint.Core.Tests: test for private property
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab authored and knocte committed Dec 28, 2023
1 parent cd5eb27 commit a1ba763
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,12 @@ type CustomerName(firstName) =

Assert.IsFalse this.ErrorsExist

member this.``Using private property with underscore prefix``() =
this.Parse """
type CustomerName(firstName) =
member val private _FirstName = firstName with get, set
member this.MyFunc () =
printfn "%A" this._FirstName"""

Assert.IsFalse this.ErrorsExist

0 comments on commit a1ba763

Please sign in to comment.