Skip to content

Wrong match case selected #16252

Closed
Closed
@Bersier

Description

@Bersier

Compiler version

3.2.0

Minimized code

class Baz:
  inline def foo: Int = bar(zero)
  inline def bar(inline i: Int): Int = inline i match
    case 0 => 0
    case _ => 1
  private inline def zero = 0

println(Baz().foo)

Output

1

Expectation

0

See also #15893

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions