It was quite difficult to find in my code, but as soon as I found it, I was surprised that the compiler did not catch it or did not understand why it was right.
val my_string = "abc" + "def" "ghi"
The value of my_string turned out to be "abcdef" , since I missed the + sign after "def" . Why didn't the compiler complain and what happened to "ghi" ?
source share