Fix type error

This commit is contained in:
Aaron Smith 2023-08-22 16:16:04 +01:00
parent a3f03fd067
commit 6764d34ce1

View file

@ -39,15 +39,15 @@ local nested_stack = {} :: { {} | number }
-- todo: solution without manual updating of this table -- todo: solution without manual updating of this table
-- map of datatype names to class default constructor for aggregate initialization -- map of datatype names to class default constructor for aggregate initialization
local aggregates = { local aggregates = {}
for i, v in next, {
Vector2 = Vector2, Vector2 = Vector2,
UDim2 = UDim2, UDim2 = UDim2,
UDim = UDim2, UDim = UDim2,
Rect = Rect, Rect = Rect,
Color3 = Color3 Color3 = Color3
} } do
for i, v in next, aggregates do
aggregates[i] = v.new aggregates[i] = v.new
end end