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 👍

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions