Community
Participate
Working Groups
build I20080415-1646 public class X { void foo() { abstract enum E { } } } This test case produce the following error message: 'The member enum E cannot be local' The error message catalog the following entry can be found: 752 = Illegal modifier for the local enum {0}; only abstract is permitted This seems useless as enum cannot be local and cannot be abstract.
Created attachment 112454 [details] Proposed patch with testcase Removed the check in ClassScope that checked anonymous enum types since it was redundant Extended EnumTest test003 with an anonymous type for an enum constant Other existing tests show that errors for local enum types are reported correctly
Fix and test released for 3.5M3
Verified for 3.5M3 using I20081026-2000 build.