| Summary: | [Xbase/Xtend] Illegal code generated for inferred return types | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Stephane Barbey <stephane> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | SR1 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
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 |
Build Identifier: I20110613-1736 The following Xtenc class: package gub class Buggy { def buggy() { if (true) return false; } } generated the following Java code: package gub; @SuppressWarnings("all") public class Buggy { public Boolean buggy() { Object _xifexpression = null; if (true) { return false; } return _xifexpression; } } which is illegal because _xifexpression is not a Boolean. Reproducible: Always