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

Allow spreading const records in type constructors for consts #3695

Open
TheOnlyTails opened this issue Oct 12, 2024 · 1 comment
Open

Allow spreading const records in type constructors for consts #3695

TheOnlyTails opened this issue Oct 12, 2024 · 1 comment

Comments

@TheOnlyTails
Copy link

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.

@lpil
Copy link
Member

lpil commented Oct 14, 2024

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants