Skip to content

Commit

Permalink
Fix existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed Sep 13, 2024
1 parent 17dd26e commit 09c1538
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Fantomas.Core.Tests/AutoPropertiesTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ let ``public get, private set in signature`` () =
"""
module A
type X() =
type X =
member val internal Y: int = 7 with public get, private set
"""
config
Expand Down
6 changes: 4 additions & 2 deletions src/Fantomas.Core.Tests/NullnessTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ let myFunc() : 'T when 'T : not struct and 'T:null = null
|> should
equal
"""
let myFunc () : 'T when 'T: not struct and 'T: null = null
"""

[<Test>]
Expand Down Expand Up @@ -86,7 +86,9 @@ match x with
|> should
equal
"""
match x with
| :? string
| null -> ()
"""

[<Test>]
Expand Down
1 change: 1 addition & 0 deletions src/Fantomas.Core/ASTTransformer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ let mkSynAccess (vis: SynAccess option) =
/// https://fsharp.github.io/fsharp-compiler-docs/reference/fsharp-compiler-syntax-synvalsigaccess.html
let mkSynValSigAccess (vis: SynValSigAccess) =
match vis with
| SynValSigAccess.GetSet(accessibility = vis; getterAccessibility = None; setterAccessibility = None)
| SynValSigAccess.Single(accessibility = vis) -> mkSynAccess vis
| _ -> failwithf "todo SynValSigAccess: %A" vis

Expand Down

0 comments on commit 09c1538

Please sign in to comment.