Skip to content
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

The parser expects pragmas in different places for types and procedures #1872

Closed
MasonMcGill opened this issue Jan 5, 2015 · 0 comments
Closed

Comments

@MasonMcGill
Copy link

proc p[X]() {.inline.} = discard  # This is parsed.
proc p {.inline.} [X]() = discard # This is not parsed.

type T[X] {.shallow.} = void  # This is not parsed.
type T {.shallow.} [X] = void # This is parsed.

It seems like the second-to-last line should be valid, and the last line should raise an error. Instead, the opposite occurs (Error: implementation of 'T' expected).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants