| Summary: | [Xbase] wrong synthetic variable names for arrays | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, tmf.xtext-inbox |
| Version: | 2.2.0 | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| 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 |
def test(Object x) { switch x { String[] : x.get(0) } } translates to public String test(final Object x) { String _switchResult = null; boolean matched = false; if (!matched) { if (x instanceof String[]) { final String[] _string[] = (String[])x; matched=true; final String[] _typeConverted__string[] = (String[])_string[]; String _get = ((List<String>)Conversions.doWrapArray(_typeConverted__string[])).get(0); _switchResult = _get; } } return _switchResult; }