Why can't an empty string with a string interpolation prefix compile if I follow the instructions?
for instance
val test = s""
println("hello")
Unable to compile with error
error: value println is not a member of String
possible cause: maybe a semicolon is missing before `value println'?
println("hello")
But everything compiles fine:
val test = s""
val test = ""
println("hello")
def test() { s"" }
println("hello")
val test = s" "
println("hello")
source
share