fsharp
fsharp copied to clipboard
Offside rules for accessibility modifier after the '=' in record declarations might need work
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 }