Generic subtype escaping scope

Im having the warning Generic subtype escaping scope when i pack wrap braces around ... does anyone know a fix?
using table.pack() instead wont work because it has the n field

function Array.prototype.push<T>(self : Array<T>, ... : T) : number
	for _, v : any in ipairs {...} do
		self[#self+1] = v
	end
	return #self
end
2 Likes