Skip to content

Cannot set value in list by index #5

@Funkschy

Description

@Funkschy
val namen = ["Hans", "Otto", "Peter"];
namen[0] = "Fritz";

This produces following output:
[Error line: 2]: Invalid target for set operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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