diff --git a/spec/10-expressions.md b/spec/10-expressions.md index a328960..7032171 100644 --- a/spec/10-expressions.md +++ b/spec/10-expressions.md @@ -616,6 +616,7 @@ object-creation-expression: 'new' class-type-designator '(' argument-expression-list ','? ')' 'new' class-type-designator 'new' 'class' '(' argument-expression-list? ')' class-base-clause? class-interface-clause? '{' class-member-declarations? '}' + 'new' 'class' '(' argument-expression-list ','? ')' class-base-clause? class-interface-clause? '{' class-member-declarations? '}' 'new' 'class' class-base-clause? class-interface-clause? '{' class-member-declarations? '}' class-type-designator: @@ -638,6 +639,7 @@ new-variable: new class-type-designator ( argument-expression-list ,opt ) new class-type-designator new class ( argument-expression-listopt ) class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } + new class ( argument-expression-list ,opt ) class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } new class class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } class-type-designator: diff --git a/spec/19-grammar.md b/spec/19-grammar.md index e52237c..ea6a79b 100644 --- a/spec/19-grammar.md +++ b/spec/19-grammar.md @@ -424,6 +424,7 @@ The grammar notation is described in [Grammars section](09-lexical-structure.md# new class-type-designator ( argument-expression-list ,opt ) new class-type-designator new class ( argument-expression-listopt ) class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } + new class ( argument-expression-list ,opt ) class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } new class class-base-clauseopt class-interface-clauseopt { class-member-declarationsopt } class-type-designator: