Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353499 - Can't initialize flexible record
Summary: Can't initialize flexible record
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 09:57 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 09:57:17 EDT
Using record:
record myrec
	i int = 9;
end


The following field results in a null record:
m myrec;

Each of the following results in a compile error:
m myrec{};
m myrec = new myrec;

The error is:
Bound mismatch: The generic method ezeCopyTo(AnyValue, V) of type AnyValue is not applicable for the arguments (myrec, myrec). The inferred type myrec is not a valid substitute for the bounded parameter <V extends AnyValue>
Comment 1 Jeff Douglas CLA 2011-08-05 09:02:49 EDT
fixed
Comment 2 Justin Spadea CLA 2011-09-08 14:19:22 EDT
Verified