Skip to content

Give better error messages when calling overloaded function with invalid types #672

@JukkaL

Description

@JukkaL

Currently when calling an overloaded function, the error message is something like No overload variant of "foo" matches argument types. Instead, we should try to give a message like Argument 1 to "foo" has incompatible type "int"; expected "str" or "bytes", which is more informative. This may not be always possible, but we should be able to do it at least most of the time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions