I just observed something strange. In Idea 10.5 with newest Scala Plugin (through the plugin updates),
I have to use an identifier with backticks:
Since type is a Scala keyword I must enclose it in backticks. I do it and if the cursor is moved with
the cursor keys the last backtick is removed:
which results in error again.
When I add the last backtick, move the cursor and then save the document, it seems to prevent the problem.