Skip to content

Align pragma broken #5315

@rokups

Description

@rokups
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions