Community
Participate
Working Groups
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>)
Preliminary scheduled for 2.0RC1
postponed to SR1
Added a validation rule.
Closing all bugs that were set to RESOLVED before Neon.0