| Summary: | [Xbase] Code generation for CollectionExtensions.operator_add(Collection, Iterable) binds wrong type | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Jendrik Johannes <jendrik.johannes> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
val l = new ArrayList<JvmField>(); new ArrayList<JvmMember>() += l; compiles to (with Java compilation error): ArrayList<JvmField> _arrayList = new ArrayList<JvmField>(); final ArrayList<JvmField> l = _arrayList; ArrayList<JvmMember> _arrayList_1 = new ArrayList<JvmMember>(); boolean _operator_add = CollectionExtensions. <JvmField>operator_add(_arrayList_1, l); but last line should be (I think): boolean _operator_add = CollectionExtensions. <JvmMember>operator_add(_arrayList_1, l); or: boolean _operator_add = CollectionExtensions. operator_add(_arrayList_1, l);