| Summary: | [Xbase] check instanceof expression | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.2.1 | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Array types should be allowed in instanceof expressions. In Java it's ok to check variable instanceof List<?> I think Xtend should allow that, too 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 |
The instanceof expression must be validated to not use any primitives. Also the type on the left and the right should be validated like in Java (incompatible conditional operands). Finally no conversion rules should be respected. That is [| 'foo' ] instanceof Supplier<String> is *false* as well as newArrayList('foo','bar') instanceof String[]