What kind of error are you getting when using the ellipsis?
Instead of using the three dots you could also replace it with the Ellipsis keyword, but I guess this would yield the same error you are seeing.
Note that your code snippet works fine for me.