Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Compiler/Symbols/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ type FSharpMemberOrFunctionOrValue(cenv, d:FSharpMemberOrValData, item) =

member x.GetValSignatureText (displayContext: FSharpDisplayContext, m: range) =
checkIsResolved()
let displayEnv = { displayContext.Contents cenv.g with includeStaticParametersInTypeNames = true }
let displayEnv = { displayContext.Contents cenv.g with includeStaticParametersInTypeNames = true; suppressInlineKeyword = false }

let stringValOfMethInfo (methInfo: MethInfo) =
match methInfo with
Expand Down
16 changes: 15 additions & 1 deletion tests/service/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,21 @@ type Foo() =
and set (a: int) (b: float) = ()
"""
(5, 14, " member _.X", "X")


[<Test>]
let ``Signature text for inline property`` () =
assertSignature
"member inline Item: i: int * j: char -> string with get\nmember inline Item: i: int * j: char -> string with set"
"""
module Meh

type Foo =
member inline this.Item
with get (i:int,j: char) : string = ""
and set (i:int,j: char) (x:string) = printfn "%i %c" i j
"""
(5, 27, " member inline this.Item", "Item")

module AnonymousRecord =
[<Test>]
let ``Anonymous record copy-and-update symbols usage`` () =
Expand Down