-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:inlinearea:pattern-matchingitype:bugprio:highregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore
Milestone
Description
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
Labels
area:inlinearea:pattern-matchingitype:bugprio:highregressionThis worked in a previous version but doesn't anymoreThis worked in a previous version but doesn't anymore