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

Bug 370173

Summary: Casts don't appear to coerce closures
Product: [Tools] Xtend Reporter: William R. Burdick Jr. <bill>
Component: CoreAssignee: Project Inbox <xtend-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: sven.efftinge
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***