-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
Description
Compiler version
3.7.3
Minimized code
scala> i match { case `-`42 => "yay" }
[[syntax trees at end of typer]] // rs$line$3
package <empty> {
final lazy module val rs$line$3: rs$line$3 = new rs$line$3()
final module class rs$line$3() extends Object() { this: rs$line$3.type =>
val res1: String =
i match
{
case -42 =>
"yay"
}
}
}
val res1: String = yay
Expectation
The backquoted hyphen is not minus.