In the following code
val x = 5 val y = 4 match { case x => true case _ => false }
the value y is true. Scala interp
y
Backticking the variable indicates to bind a scoped variable:
val x = 5 val y = 4 match { case `x` => true; case _ => false }
returns false.
false
Alternatively, if a variable starts with an uppercase letter, it binds to a scoped variable without backticking.