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.
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.