Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370173 - Casts don't appear to coerce closures
Summary: Casts don't appear to coerce closures
Status: CLOSED DUPLICATE of bug 370232
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-30 17:35 EST by William R. Burdick Jr. CLA
Modified: 2012-01-31 11:04 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William R. Burdick Jr. CLA 2012-01-30 17:35:18 EST
Build Identifier: 

This works,

var Function<Integer, Integer> s = [x|x * 2]

This does not work,

var s = [x|x * 2] as Function<Integer,Integer>


Reproducible: Always

Steps to Reproduce:
Try to compile this expression: [x|x * 2] as Function<Integer,Integer>
Comment 1 Sven Efftinge CLA 2012-01-31 11:04:03 EST

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