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

Align pragma broken #5315

Closed
rokups opened this issue Feb 1, 2017 · 0 comments · Fixed by #12643
Closed

Align pragma broken #5315

rokups opened this issue Feb 1, 2017 · 0 comments · Fixed by #12643
Labels

Comments

@rokups
Copy link
Contributor

rokups commented Feb 1, 2017

type Foo {.align: 16.} = object

Results in:

test.nim(2, 17) Error: invalid pragma: align: 16

Would be great if following worked as well:

type Foo = ref object
  bar {.align: 16.}: SomeType

Where SomeType is possibly importc type (if it is of any meaning).

Most ideally we would want following to work so that Foo type can be aligned as required always.

type Foo {.align: 16.} = object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants