-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
When a function has multiple signatures, the arguments and returns from all but the last signuature are ignored.
/**
* Object#one() -> Object
* Object#one(thing) -> String
* - thing (Number): A number
*
* Here's the correct signature:
*
* Object#one() -> Object
* Object#one(thing) -> String
* - thing (Number): A number
*
* Here's how the signatures are understood:
*
* Object#one
* Object#one(thing) -> String
* - thing (Number): A number
*
**/
You can actually see this happening on the hosted example of Prototype:
http://nodeca.github.io/ndoc/tests/prototype/#Element.addMethods