| --- | --- |
| Bugzilla Link | 424904 |
| Status | UNCONFIRMED |
| Importance | P3 normal |
| Reported | Jan 05, 2014 19:23 EDT |
| Modified | Apr 05, 2014 18:25 EDT |
| Reporter | Alex Paperno |
Description
The following code comiles with an error:\
Can't assign a value to 'inout' parameter 'inoutParam'\
-----------\
mapping EClass::mapToListInc(inout inoutParam : List(String)) : EClass {\
inoutParam += "";\
}\
-----------\
The += operator here doesn't create a new instance but changes the existing instead, so there's no point to prohibit its use.
| --- | --- | | Bugzilla Link | 424904 | | Status | UNCONFIRMED | | Importance | P3 normal | | Reported | Jan 05, 2014 19:23 EDT | | Modified | Apr 05, 2014 18:25 EDT | | Reporter | Alex Paperno |
Description
The following code comiles with an error:\ Can't assign a value to 'inout' parameter 'inoutParam'\ -----------\ mapping EClass::mapToListInc(inout inoutParam : List(String)) : EClass {\ inoutParam += "";\ }\ -----------\ The += operator here doesn't create a new instance but changes the existing instead, so there's no point to prohibit its use.