Skip to content

Allow spreading const records in type constructors for consts #3695

Open
@TheOnlyTails

Description

@TheOnlyTails

Currently, const declarations do not support spreading records:

const a = Foo(1, 2)
const b = Foo(..a, 3)

I propose that if the spread record is also a const, it should be allowed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions