Skip to content

Compiler hangs on returning postfixed number literal from a function with mismatching types #1637

Closed
@ghost

Description

Reproduction link.

export function bug(): i32 {
  const x = 1u8;

  return x;
}

The compiler hangs when using a postfixed literal (does ASC even have these?), but only if it's in a position other than the return value.

I.e., this compiles fine:

export function probably_still_a_bug(): i32 {
  return 1u8;
}

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