Skip to content

Commit

Permalink
FShapLint.Core.Tests: test for private member
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab authored and knocte committed Dec 28, 2023
1 parent ee1ef8f commit cd5eb27
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,15 @@ type CustomerName(firstName) =
printfn "%A" this._FirstName"""

Assert.IsFalse this.ErrorsExist


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

Assert.IsFalse this.ErrorsExist


0 comments on commit cd5eb27

Please sign in to comment.