fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

Offside rules for accessibility modifier after the '=' in record declarations might need work

Open cartermp opened this issue 6 years ago • 0 comments

These forms compile:

type Foo = private { Bar: int; Baz: int }

type Foo = private {
    Bar: int
    Baz: int }

// Anything where `private {` is on the same line

These do not:

type Foo = private
    { Bar: int
      Baz: int }

// Anything where `{ Bar...` is not indented a scope further than `private`

These do:

type Foo = 
    private
        { Bar: int
          Baz: int }

type Foo = private
            { Bar: int
              Baz: int }

cartermp avatar Oct 19 '19 00:10 cartermp