File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## [ 6.0.8] - 2023-06-20
4
+
5
+ ### Fixed
6
+ * Inline keyword is missing in property [ #2908 ] ( https://github.com/fsprojects/fantomas/issues/2908 )
7
+
3
8
## [ 6.0.7] - 2023-06-20
4
9
5
10
### Fixed
Original file line number Diff line number Diff line change @@ -1330,3 +1330,28 @@ type X() =
1330
1330
member private this.Y
1331
1331
with set _ = ()
1332
1332
"""
1333
+
1334
+ [<Test>]
1335
+ let ``inline keyword on property , 2908`` () =
1336
+ formatSourceString
1337
+ false
1338
+ """
1339
+ module Meh
1340
+
1341
+ type Foo =
1342
+ member inline this.Item
1343
+ with get (i:int,j: char) : string = ""
1344
+ and set (i:int,j: char) (x:string) = printfn "%i %c " i j
1345
+ """
1346
+ config
1347
+ |> prepend newline
1348
+ |> should
1349
+ equal
1350
+ """
1351
+ module Meh
1352
+
1353
+ type Foo =
1354
+ member inline this.Item
1355
+ with get (i: int, j: char): string = ""
1356
+ and set (i: int, j: char) (x: string) = printfn "%i %c " i j
1357
+ """
Original file line number Diff line number Diff line change @@ -2768,11 +2768,11 @@ let mkMemberDefn (creationAide: CreationAide) (md: SynMemberDefn) =
2768
2768
attributes = ats
2769
2769
xmlDoc = px
2770
2770
headPat = SynPat.LongIdent( longDotId = memberName; accessibility = visGet)
2771
- trivia = { LeadingKeyword = lk
2772
- InlineKeyword = inlineKw }) as getBinding),
2771
+ trivia = { LeadingKeyword = lk }) as getBinding),
2773
2772
Some( SynBinding( headPat = SynPat.LongIdent( accessibility = visSet)) as setBinding),
2774
2773
_,
2775
- { GetKeyword = Some getKeyword
2774
+ { InlineKeyword = inlineKw
2775
+ GetKeyword = Some getKeyword
2776
2776
SetKeyword = Some setKeyword
2777
2777
WithKeyword = withKeyword
2778
2778
AndKeyword = andKeyword }) ->
You can’t perform that action at this time.
0 commit comments