-
Notifications
You must be signed in to change notification settings - Fork 39
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
pragmas: type pragmas must follow generic params #400
pragmas: type pragmas must follow generic params #400
Conversation
fc033cc
to
cc88755
Compare
removed the previous deprecation where pragmas could preceed the generic parameter list in a type definition, eg: ``` type Foo{.somePragma}[T] = ... # now an error type Foo[T] {.somePragma.} = ... # acceptable ``` Due to lots of issues, mostly stylistic, I've pragmas on the RHS of a type definition as legal. Largely because after changing it I realized a more significant rethink of type declaration syntax should cover this in the future. Fixed a number of test failures along the way due to this change.
cc88755
to
edc3656
Compare
bors r+ |
400: pragmas: type pragmas must follow generic params r=saem a=saem ## Summary removed the previous deprecation where pragmas could preceed the generic parameter list in a type definition, eg: ``` type Foo{.somePragma}[T] = ... # now an error type Foo[T] {.somePragma.} = ... # acceptable ``` ## Details Due to lots of issues, mostly stylistic, I've pragmas on the RHS of a type definition as legal. Largely because after changing it I realized a more significant rethink of type declaration syntax should cover this in the future. Fixed a number of test failures along the way due to this change. Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Build failed: |
bors r+ |
400: pragmas: type pragmas must follow generic params r=saem a=saem ## Summary removed the previous deprecation where pragmas could preceed the generic parameter list in a type definition, eg: ``` type Foo{.somePragma}[T] = ... # now an error type Foo[T] {.somePragma.} = ... # acceptable ``` ## Details Due to lots of issues, mostly stylistic, I've pragmas on the RHS of a type definition as legal. Largely because after changing it I realized a more significant rethink of type declaration syntax should cover this in the future. Fixed a number of test failures along the way due to this change. Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Timed out. |
bors r+ |
400: pragmas: type pragmas must follow generic params r=saem a=saem ## Summary removed the previous deprecation where pragmas could preceed the generic parameter list in a type definition, eg: ``` type Foo{.somePragma}[T] = ... # now an error type Foo[T] {.somePragma.} = ... # acceptable ``` ## Details Due to lots of issues, mostly stylistic, I've pragmas on the RHS of a type definition as legal. Largely because after changing it I realized a more significant rethink of type declaration syntax should cover this in the future. Fixed a number of test failures along the way due to this change. Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Build failed: |
bors r+ |
@alaviss do you know what's up with this, all tests/checks seem good and bors continually is gets stuck. Reopening the PR, syncing, etc, aren't helping. :( |
Build succeeded: |
Sure, now it works. |
It could be that the bors server is overloaded. That does happen from time to time. Once Github Merge Queue become available I will look into it as a bors substitute. |
## Summary * Fix grammar nanny not compiling anymore * Fix the grammar generator generating `doc/grammar.txt` in `compiler/ast/parser.nim` * Rerunning the grammar generator fixed the grammar update from #400 / edc3656 not being reflected in `grammar.txt` and thus the manual ## Details * `tools/grammar_nanny` was just missing an import for the internal reports after those had been split out * The grammar generator expected the parser to be at `compiler/parser.nim`
Summary
removed the previous deprecation where pragmas could preceed the generic
parameter list in a type definition, eg:
Details
Due to lots of issues, mostly stylistic, I've pragmas on the RHS of a
type definition as legal. Largely because after changing it I realized a
more significant rethink of type declaration syntax should cover this in
the future.
Fixed a number of test failures along the way due to this change.