Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cartermp opened this issue Oct 19, 2019 · 0 comments
Assignees
Labels
Area-Compiler-Syntax lexfilter, indentation and parsing Feature Improvement
Milestone

Comments

@cartermp
Copy link
Contributor

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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compiler-Syntax lexfilter, indentation and parsing Feature Improvement
Projects
Status: New
Development

No branches or pull requests

3 participants