Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352538 - [Xtend2] flatten and arrays
Summary: [Xtend2] flatten and arrays
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 03:58 EDT by Christian Dietrich CLA
Modified: 2017-09-19 18:17 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Dietrich CLA 2011-07-20 03:58:20 EDT
Build Identifier: 

This is valid Xend2 code

"a,b,c".split(",").flatten

This leads to a compile error in the gererated Java Code

I Know that Xtend2 dislikes arrays, but it should work or i should get an error in the Xtend file.

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-07-21 11:04:43 EDT
The inference issue itself was already solved for SR1. However, flatten is defined for Iterable<? extends Iterable<? extends T>> and String[] / List<String> does not match the type constraint. A validation rule is missing.
Comment 2 Sebastian Zarnekow CLA 2011-07-21 16:19:09 EDT
Pushed to master.
Comment 3 Karsten Thoms CLA 2017-09-19 18:07:34 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:17:10 EDT
Closing all bugs that were set to RESOLVED before Neon.0