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

Bug 357272

Summary: NoSuchMemberError on dictionary initializer
Product: z_Archived Reporter: Matt Heitz <mheitz>
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matt Heitz CLA 2011-09-09 14:27:19 EDT
This declaration:

a dictionary = new dictionary{ key1 = "a", key2 = "AA" };


Results in this error when I save my file:

Caused by: org.eclipse.edt.mof.egl.NoSuchMemberError: Member not found: key1
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.resolveMember(MemberAccessImpl.java:130)
	at org.eclipse.edt.mof.egl.impl.MemberAccessImpl.getMember(MemberAccessImpl.java:82)
Comment 1 Matt Heitz CLA 2011-09-21 08:04:28 EDT

*** This bug has been marked as a duplicate of bug 355445 ***