Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 355383

Summary: [Xtend] escaped void (^void) generates illegal java code
Product: [Modeling] TMF Reporter: Robert von Massow <rvonmassow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Robert von Massow CLA 2011-08-22 08:49:58 EDT
Build Identifier: 2.0.1.v201108190621

the follwing xtend code

def foo() {
	var ^void = new Object()
	^void
}

translates to

  public Object foo() {
    Object _xblockexpression = null;
    {
      Object _object = new Object();
      Object void = _object;
      _xblockexpression = (void);
    }
    return _xblockexpression;
  }

Reproducible: Always

Steps to Reproduce:
1. just use the code snippet
Comment 1 Robert von Massow CLA 2011-08-22 08:52:57 EDT
uhm, sorry, just saw: #346826 seems to be the original bug

*** This bug has been marked as a duplicate of bug 346826 ***