Is there a way to use “type” word as a variable name in Scala?

You can escape with backticks:

val `type` = 5

Leave a Comment