Skip to content

[match types] ill-formed recursion causes compiler to hang #9849

Closed
@IndiscriminateCoding

Description

@IndiscriminateCoding

Minimized code

type *:[A, B] = A match
  case (B *: x) => A
  case (x *: y) => x *: (B *: y)
  case _ => A *: B

Output (click arrow to expand)

Well, not actually crash, but it hangs indefinitely

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions