Skip to content

let 'not found' error hint to differently used, similar-named, method/mutating/free func #2314

@bar-g

Description

@bar-g
ysh-0.29$ var list = []
ysh-0.29$ call list.append(1)

  call list.append(1)
            ^~~~~~
[ interactive ]:176: fatal: Method 'append' not found on builtin type List

Maybe error messages could give a syntax hint if a similarly named function or method exists.

Here, a mutating version (->append()) does exists.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions