| Summary: | [xbase][refactoring] Element is not renamed after type guard of switch statement | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Jan Koehnlein <jan> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge, tmf.xtext-inbox |
| Version: | 2.0.1 | Flags: | jan:
juno+
|
| Target Milestone: | M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Results of a short discussion: Instead of introducing a new variable with the same name and a different type, we should rather implement the cast inside the type provider. Follow up in bug 364298 Sorry for last comment, wrong bug :-) 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 |
Consider the following Xbase expression { val Object v = "" switch(v) { String: v.length Object: v.hashCode default: v.hashCode } } If you rename v in the val statement, only the first two ant the last occurence are renamed.