You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scala> i match { case `-`42=>"yay" }
[[syntax trees at end of typer]] // rs$line$3package<empty> {
finallazy module valrs$line$3: rs$line$3=new rs$line$3()
final module classrs$line$3() extendsObject() { this: rs$line$3.type=>valres1:String=
i match
{
case-42=>"yay"
}
}
}
valres1:String= yay
Activity
Warn dubious negative literal syntax (scala#24163)
Warn dubious negative literal syntax (scala#24163)