| Author |
Enum in private inner class.
|
Garrett Smith
Ranch Hand
Joined: Jun 27, 2002
Posts: 401
|
|
Why do I get a compiler error by putting enum SortKey inside the inner class? Error:The member enum SortKey must be defined inside a static member type
|
comp.lang.javascript FAQ: http://jibbering.com/faq/
|
 |
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
|
|
|
enums are implicitly static
|
 |
Ken Blair
Ranch Hand
Joined: Jul 15, 2003
Posts: 1078
|
|
|
...and inner classes cannot have static members. Logical consequence is that inner classes cannot declare enums.
|
 |
 |
|
|
subject: Enum in private inner class.
|
|
|