You can escape with backticks:
val `type` = 5
More Related Contents:
- Understanding implicit in Scala
- “new” keyword in Scala
- What is the eta expansion in Scala?
- How to define schema for custom type in Spark SQL?
- Specifying the filename when saving a DataFrame as a CSV [duplicate]
- Spark unionAll multiple dataframes
- How to split a dataframe into dataframes with same column values?
- Spark performance for Scala vs Python
- How to use regex to include/exclude some input files in sc.textFile?
- How to write spark streaming DF to Kafka topic
- sender inside a future
- How to find spark RDD/Dataframe size?
- When and why should one use Applicative Functors in Scala
- What’s the easiest way to use reify (get an AST of) an expression in Scala?
- Doing something before or after all Scalatest tests
- Scala underscore minimal function
- Debugging Scala code with simple-build-tool (sbt) and IntelliJ
- Scala case class inheritance
- Use functional combinators on Scala Tuples?
- scala tuple unpacking
- Using varargs from Scala
- Can’t prove that singleton types are singleton types while generating type class instance
- Clarification needed about futures and promises in Scala
- Difference between MutableList and ListBuffer
- Why does Spark RDD partition has 2GB limit for HDFS?
- Creating a method definition tree from a method symbol and a body
- How do I parse command line arguments in Scala? [closed]
- Futures / Success race
- Scala start Play server in production
- Why does one select Scala type members with a hash instead of a dot?