scala> val x = 100
x: Int = 100
The following works:
scala> println(s" ${x} ")
100
But, the following fails:
scala> println(s"\" ${x} \" ")
<console>:12: error: value $ is not a member of String
println(s"\" ${x} \" ")
^
<console>:12: error: value \ is not a member of Int
println(s"\" ${x} \" ")
^
How can I fix this?
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.