fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
515 stars 154 forks source link

Documentation don't show inheritance #273

Closed MangelMaxime closed 7 years ago

MangelMaxime commented 7 years ago

Hello, I am using F# with a lot of type inheritance (classes). But the reference documentation don't show the inheritance.

Example:

type Rectangle (x, y, ?width, ?height, ?fillColor, ?borderColor, ?borderWidth, ?radius, ?auto, ?padding) =
    /// Private storage
    let mutable _x = x
    let mutable _y = y
    ....

type Button (text, x, y, ?width, ?height, ?fillColor, ?hoverFillColor, ?borderColor, ?borderWidth, ?radius, ?auto, ?padding) =
    inherit Rectangle(x, y, ?width = width, ?height = height, ?fillColor = fillColor,
                      ?borderColor = borderColor, ?borderWidth = borderWidth, ?radius = radius,
                      ?auto = auto, ?padding = padding)
    /// Private storage
    let mutable _hoverFillColor = defaultArg hoverFillColor float 0x648451
    let mutable _text = new Text(text)
    let mutable _state = Normal

Button reference page: doc

This could be nice to have inheritance shown.

forki commented 7 years ago

this is a FSharp.Formatting issue, right? please report there

MangelMaxime commented 7 years ago

Sorry @forki didn't know where to report it.

Here is the reference: https://github.com/tpetricek/FSharp.Formatting/issues/424