Skip to content

Commit

Permalink
Allow calling on generics types with varargs
Browse files Browse the repository at this point in the history
  • Loading branch information
edubart committed Sep 29, 2020
1 parent 2505e1e commit bd9c024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nelua/types.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2240,8 +2240,8 @@ function GenericType:eval_type(params)
end

-- Permits evaluating generics by directly calling it's symbol in the preprocessor.
function GenericType:__call(params)
return self:eval_type({params})
function GenericType:__call(...)
return self:eval_type({...})
end

return types

0 comments on commit bd9c024

Please sign in to comment.