Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<clause number="21.2" title="Enum modifiers">
<paragraph>An <non_terminal where="21.1">enum-declaration</non_terminal> may optionally include a sequence of enum modifiers: <grammar_production><name><non_terminal where="21.2">enum-modifier</non_terminal>s</name> : <rhs><non_terminal where="21.2">enum-modifier</non_terminal></rhs><rhs><non_terminal where="21.2">enum-modifiers</non_terminal><non_terminal where="21.2">enum-modifier</non_terminal></rhs></grammar_production><grammar_production><name><non_terminal where="21.2">enum-modifier</non_terminal></name> : <rhs><keyword>new</keyword></rhs><rhs><keyword>public</keyword></rhs><rhs><keyword>protected</keyword></rhs><rhs><keyword>internal</keyword></rhs><rhs><keyword>private</keyword></rhs></grammar_production>It is a compile-time error for the same modifier to appear multiple times in an enum declaration. </paragraph>
<paragraph>The modifiers of an enum declaration have the same meaning as those of a class declaration (<hyperlink>17.1.1</hyperlink>). Note, however, that the abstract and sealed modifiers are not permitted in an enum declaration. Enums cannot be abstract and do not permit derivation. </paragraph>
</clause>