Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353500 - Compile error assigning small integer literal to an ANY
Summary: Compile error assigning small integer literal to an ANY
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (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-01 10:01 EDT by Justin Spadea CLA
Modified: 2017-02-23 14:19 EST (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 Justin Spadea CLA 2011-08-01 10:01:21 EDT
myany any = 10;

Compile error at: myany = EInt16.ezeBox(10);

It needs "10" to be cast to a short. This isn't a problem when the value is large enough to use EInt32 or EInt64.
Comment 1 Jeff Douglas CLA 2011-08-05 09:29:02 EDT
fixed
Comment 2 Justin Spadea CLA 2011-09-13 17:43:29 EDT
Verified