Bug 409338 - Overload range operators for long
Summary: Overload range operators for long
Status: NEW
Alias: None
Product: Xtend
Classification: Tools
Component: Backlog (show other bugs)
Version: 2.4.0   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-28 16:37 EDT by Edwin Park CLA
Modified: 2016-08-26 10:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Park CLA 2013-05-28 16:37:01 EDT
Xtend 2.4 does not allow long values to be used in range operators. For example:

val longValue = 123L
for (i : 0 .. longValue) {
  println(i)
}

Typing in the above Xtend code produces the error 'Type mismatch: cannot convert from long to int'.
Comment 1 Christian Dietrich CLA 2016-08-26 10:54:03 EDT
do we want to have this feature? or do we want the user to overload the .. operator for long her/himself