| Summary: | [Xbase] Handle raw types gracefully | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Robert von Massow <rvonmassow> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Robert von Massow
for a cast expression like : null as Iterable the compilation is silently broken. Xbase should fill up missing type arguments with wildcards. Preliminary scheduled for 2.0RC1 postponed to SR1 Pushed to master. (In reply to comment #1) > for a cast expression like : > > null as Iterable > > the compilation is silently broken. The following test compiles and executes without errors: def void castNull() { var raw = null as Iterable var strings = null as Iterable<String> var Iterable assignStringsToRaw = null as Iterable<String> var Iterable<String> assignRawToStrings = null as Iterable var Iterable assignRawToRaw = null as Iterable var Iterable<String> assignStringsToStrings = null as Iterable<String> if (raw != strings) throw new IllegalStateException() } Please reopen if I missed the point of this issue. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |