Skip to content

Struct merging not working in v1.0.0-pre.2 #78

Description

@cablumen

I tried following the documentation to merge structs in v1.0.0-pre.2 using the new struct syntax.

type foo = struct {
foo: u8
}

type bar = struct {
bar: string
}

type foo_bar = struct {
..foo,
..bar
}

Gives error:
@bundle/libs/diagnostics/init.luau:63:
[Error 1000]: Expected one of "word", "string", got ".." instead
╭[CollectionCard.blink:12:12]
│ ..foo,
┆ ┬─
┆ ╰─ Here

As far as I can tell, this is the expected syntax in v1.0.0 but correct me if I am wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrewriteRelated to the blink rewrite

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions