Skip to content

array.index_of: string argument got mistaken as function? #795

@juchiast

Description

@juchiast
let array = ["hello"];
array.index_of("hello");
EXCEPTION: Function not found: hello (&str | ImmutableString | String, i64)
in call to function 'index_of' (line 2, position 7)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions