neighbouring same type checks where first is optional #4

Closed
torvalamo opened this Issue Oct 22, 2010 · 1 comment

1 participant

@torvalamo
Owner

two same-type checks can't follow if the first one is optional

argtype(... [['number'], 'number'] ..)
// throws error because second argument is missing
func(4)
@torvalamo torvalamo closed this Jan 21, 2012
@torvalamo
Owner

possibly fixed in 0.3, as it now uses recursive checks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment