JS1184: More than one constructor matches this argument list

JavaScript Editor Ajax toolkit     Ajax website 

Main Page

An expression that is calling an overloaded constructor does not find an exact match to the types of arguments that are passed. In this situation, the compiler attempts to determine which overloaded constructor requires the least number of data type coercions of the arguments. This error indicates that the compiler found more than one constructor that matches the arguments with the same number of data type coercions.

To correct this error

  • Check the data types accepted by the overloaded constructor and make sure the data types of the arguments match only one overloaded constructor.

See Also


Troubleshooting Your Scripts

Other Resources

JScript Reference
JScript Reference

JavaScript Editor Ajax toolkit     Ajax website