Skip to content

Error message in typechecker lists available keyword parameters as cause, but should be a fix? #2816

Description

@DavyLandman

availableKws = [ info("Available keyword parameter: `<prettyAType(kw.fieldType)> <kw.fieldName>` in `<kw.definingModule>`", |unknown:///|) | Keyword kw <- kwFormals ];
msgs += error(kwa, "Undefined keyword argument %q", kwName, causes=availableKws);

In case of a non-existing kwparam, we get a list of other kw-params listed in the causes details, but they are not the reason we couldn't find the identifier.

I think this got assigned to the wrong field, and it should be a fix?

I've reviewed the other causes, and they seem correct 👍

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions