scala> util.Properties.versionString res11: String = version 2.11.2 scala> val a = \"\" a: String = \"\" scala> val a = \"\\\"\" a: String = \"
This appears to be a known bug.
Note that you can get around it, at least for your case above, using triple quotes:
scala> val a = s"""""""" // seven quote characters all up! a: String = "