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

{.push raises: [].} breaks when combined with certain symbols #10216

GULPF opened this issue Jan 6, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jan 6, 2019

{.push raises: [].} still cannot be reliably used on a whole module to enforce tracked exceptions.


{.push raises: [].} # Error: cannot attach a custom pragma to 'e2'

  Enum = enum
    e1, e2

{.push raises: [].} # Error: cannot attach a custom pragma to 'm'

macro m: typed =

{.push raises: [].} # Error: invalid pragma: raises: []

type O {.final.} = object


@GULPF GULPF added the Pragmas label Jan 6, 2019


This comment has been minimized.

Copy link

commented Jan 7, 2019

seems related to #10015 so maybe a similar fix than #10026 would help here

Araq added a commit that referenced this issue Jan 11, 2019

@Araq Araq closed this in 5397c5d Jan 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.