Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355383 - [Xtend] escaped void (^void) generates illegal java code
Summary: [Xtend] escaped void (^void) generates illegal java code
Status: CLOSED DUPLICATE of bug 346826
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 08:49 EDT by Robert von Massow CLA
Modified: 2011-08-22 08:52 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***