| Summary: | [xbase] switch to primitive types neither works nor flagged as error | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Niko Stotz <eclipse> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jan, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | Macintosh | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Preliminary scheduled for 2.0RC1 postponed to SR1 Added a validation rule. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: I20110310-1119 Primitive types are usable in a type switch, but do not work. They should either work or be flagged as error. Reproducible: Always Steps to Reproduce: (plain copy from Tutorial.xbase) var list = newArrayList(true, 4, "123", newArrayList(5, 6)) list.map(e | switch(e) { int: "int" boolean: "boolean" String: "string" default: "dontknow" }) // [dontknow, dontknow, string, dontknow] (List<String>) list.map(e | switch(e) { Integer: "int" Boolean: "boolean" String: "string" default: "dontknow" }) // [boolean, int, string, dontknow] (List<String>)