The problem is that +
is overloaded to concatenate String
to non-strings. So, whenever you use the +
method on a type that doesn't have it, you'll get an error message that is not related to the real problem: that the type you have isn't the one you expected.
There's +:
and :+
to replace it.