-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Currently, the constructs like expectTypeOf.toBeCallableWith, expectTypeOf.parameters, expectTypeOf.parameter do not work with function overloads. Basically they just assume the signature of the last overload and give error otherwise.
I believe this could be made work, doing something similar to what is described here:
Although, for expectTypeOf.parameter, I m not sure how to refer to a parameter at given index for specific overload. But i believe "toBeCallableWith" and "parameters" could be made work.
Thanks.
MiroslavPetrik and mmkal
Metadata
Metadata
Assignees
Labels
New featureNew feature or requestNew feature or request