This was a fairly hard bug to find in my code but once i found it i was surprised the compiler didn't catch it or understand why it was valid.
val my_string =
"abc" +
"def"
"ghi"
The value of my_string ended up being "abcdef" since i missed the + sign after "def". Why didn't the compiler complain and what happened to "ghi"?