Re: Re: Possible inconsistent error for "+=" shorthand while using immutable set

Rex Kerr <[email protected]> Sun, 27 Mar 2016 12:34:33 -0700
Newsgroups gmane.comp.lang.scala
Message-ID <CAP_xLa2Mf45cF6NG6eUUYHFF7BRRSOqXByUQCN1PGbHOy4Q+Fw@mail.gmail.com>
Fixed how?  You mean by explicitly noting that the LHS is not a var so it
didn't look for a `+` method?

On Sun, Mar 27, 2016 at 12:12 PM, Naftoli Gugenheim <[email protected]>
wrote:

> The error message should still be fixed.
>
> On Sun, Mar 27, 2016, 2:04 PM Andrew Phillips <[email protected]>
> wrote:
>
>> > In short, the rewriting of a += b to a = a + b can only take place if a
>> is something "that can be assigned"
>>
>> Er..."if a is something 'that can be assigned *to*'" would have been
>> clearer ;-)
>>
>> ap
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "scala-language" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "scala-language" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.