Skip to content

Commit 3f09ed6

Browse files
CyberShadowGeod24
authored andcommitted
spec: Remove definitions redundant with MissingFunctionBody
$(D ;) is already a possible FunctionBody (as MissingFunctionBody).
1 parent 5701db3 commit 3f09ed6

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

spec/class.dd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ $(H2 $(LNAME2 constructors, Constructors))
314314

315315
$(GRAMMAR
316316
$(GNAME Constructor):
317-
$(D this) $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
318317
$(D this) $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
319318
$(GLINK2 template, ConstructorTemplate)
320319
)
@@ -677,7 +676,6 @@ $(H2 $(LNAME2 destructors, Destructors))
677676

678677
$(GRAMMAR
679678
$(GNAME Destructor):
680-
$(D ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(D ;)
681679
$(D ~ this ( )) $(GLINK2 function, MemberFunctionAttributes)$(OPT) $(GLINK2 function, FunctionBody)
682680
)
683681

@@ -1008,7 +1006,6 @@ $(H2 $(LNAME2 allocators, Class Allocators))
10081006
$(B Note): Class allocators are deprecated in D2.
10091007
$(GRAMMAR
10101008
$(GNAME Allocator):
1011-
$(D new) $(GLINK2 function, Parameters) $(D ;)
10121009
$(D new) $(GLINK2 function, Parameters) $(GLINK2 function, FunctionBody)
10131010
)
10141011

@@ -1088,7 +1085,6 @@ assert(foo.x == int.init); // object is still accessible
10881085

10891086
$(GRAMMAR
10901087
$(GNAME Deallocator):
1091-
$(D delete) $(GLINK2 function, Parameters) $(D ;)
10921088
$(D delete) $(GLINK2 function, Parameters) $(GLINK2 function, FunctionBody)
10931089
)
10941090

0 commit comments

Comments
 (0)