Skip to content

foreach with duplicate tuple objects causes infinite loop #153

@awmorgan

Description

@awmorgan

This code will cause an infinite loop and the program will print item 1 over and over and never print item 2.

  var i = $I(1);
  var t1 = tuple(i, i, $I(2));
  foreach (item in t1) {
    println("item: %$", item);
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions