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

Naftoli Gugenheim <[email protected]> Mon, 28 Mar 2016 17:46:31 +0000
Newsgroups gmane.comp.lang.scala
Message-ID <CANpg8PAEUjOmhS4E3MYT9q9n0Cvf5LUL3rtbbeUYfr46sTOZ6A@mail.gmail.com>
On Sun, Mar 27, 2016, 3:34 PM Rex Kerr <[email protected]> wrote:

> Fixed how?  You mean by explicitly noting that the LHS is not a var so it
> didn't look for a `+` method?
>

Yes (or just that it isn't doing any desugaring)


> 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.
>

-- 
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.