10000 Swapping array indexes is not supported · Issue #41 · timfennis/andy-cpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Swapping array indexes is not supported #41
Open
@timfennis

Description

@timfennis

This should probably work, but doesn't.

let l = [0, 1];
l[0], [1] = l[1], l[0];

With the following error:

  × Error while parsing source
  ╰─▶ Invalid assignment target
   ╭────
 1 │ l[0], [1] = l[1], l[0]
   · ────┬────
   ·     ╰── here
   ╰────

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreterIssue relates to the interpreter

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0