Skip to content

Commit 93cb9a9

Browse files
committed
Simplify function pointer/delegate grammar with *Type*
1 parent 9a62716 commit 93cb9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/type.dd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,8 +565,8 @@ $(P Instantiating a function type is illegal. Instead, a pointer to function
565565
or delegate can be used. Those have these type forms respectively:)
566566

567567
$(GRAMMAR_INFORMATIVE
568-
$(GLINK TypeCtor)$(OPT) $(GLINK BasicType) $(GLINK TypeSuffixes) `function` $(GLINK2 function, Parameters) $(GLINK2 function, FunctionAttributes)$(OPT)
569-
$(GLINK TypeCtor)$(OPT) $(GLINK BasicType) $(GLINK TypeSuffixes) `delegate` $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT)
568+
$(GLINK Type) `function` $(GLINK2 function, Parameters) $(GLINK2 function, FunctionAttributes)$(OPT)
569+
$(GLINK Type) `delegate` $(GLINK2 function, Parameters) $(GLINK2 function, MemberFunctionAttributes)$(OPT)
570570
)
571571

572572
$(SPEC_RUNNABLE_EXAMPLE_COMPILE

0 commit comments

Comments
 (0)