Skip to content

Incorrect compiler output for nested min/max builtins #1537

Closed
@lexaknyazev

Description

@lexaknyazev
function max3(a: i32, b: i32, c: i32): i32 {
  return max(a, max(b, c));
}

export function foo(): i32 {
  // Returns 2 instead of 3.
  return max3(3, 2, 1);
}

Similar issue with min.

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