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

New varargs style is broken when penultimate type is the same as the varargs type #679

Closed
13k opened this issue Jul 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@13k
Copy link

13k commented Jul 16, 2023

It also breaks old style varargs.

local f: function(x: number, s: string, string...): boolean
local g: function(x: number, s: string, ...: string): boolean
> tl check fn-vararg.tl
========================================
2 syntax errors:
fn-vararg.tl:1:51: '...' can only be last argument
fn-vararg.tl:2:53: '...' can only be last argument
@hishamhm
Copy link
Member

hishamhm commented Jul 16, 2023

Thank you for the report and testcase! It's now fixed!

@hishamhm hishamhm added the bug Something isn't working label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants