Skip to content

Explicit type instantiation syntax expects type packs, but StyLua formats out singular type packs #1089

@LordOfSpelunky

Description

@LordOfSpelunky
local function f<T...>(...: T...) end

f<<number>>(10)
f<<(number)>>(10)

The former is a type error, the latter is not. However, StyLua will format the latter into the former.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions