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

Varargs aren't typed correctly #82

Closed
ghost opened this issue Jun 20, 2021 · 0 comments
Closed

Varargs aren't typed correctly #82

ghost opened this issue Jun 20, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2021

Environment

name version
IDEA version IU2021.1.2
Luanalysis version 1.2.3
OS Ubuntu 21.04

What are the steps to reproduce this issue?

  1. Create required Lua file with contents:
function test(arg) end

local t = ...
test(t) -- Missing argument: arg: null

What happens?

t's type is any...

What were you expecting to happen?

t's type should be simply any

Any logs, error output, etc?

Any other comments?

Wrapping with parentheses in a function call also does not produce the correct result (this should only the first thing in the vararg).

function test(arg) end

test((...)) -- Missing argument: arg: null

I ran into this issue with existing code where I am using the module name available through ....

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

0 participants