eclipse-qvto / org.eclipse.qvto

Eclipse Public License 2.0
0 stars 0 forks source link

+= operator should be allowed for [inout] parameters #762

Open eclipse-qvt-oml-bot opened 2 days ago

eclipse-qvt-oml-bot commented 2 days ago

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

eclipse-qvt-oml-bot commented 2 days ago

By Christopher Gerking on Apr 05, 2014 18:25

Works for me without any compile errors. Is this due to another change in the meantime?