Skip to content

Commit b705f73

Browse files
authored
Move Template(Mixin)Declaration to Declaration in grammar (#3614)
This allows to declare them inside functions. For mixin templates this is supported by DMD since dlang/dmd#14240 Declaring normal templates in functions is also supported by DMD.
1 parent e36cd95 commit b705f73

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/declaration.dd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ $(GNAME Declaration):
1818
$(GLINK2 version, ConditionalDeclaration)
1919
$(GLINK2 version, StaticForeachDeclaration)
2020
$(GLINK2 version, StaticAssert)
21+
$(GLINK2 template, TemplateDeclaration)
22+
$(GLINK2 template-mixin, TemplateMixinDeclaration)
2123
)
2224

2325
$(P See also $(GLINK2 module, DeclDef).

spec/module.dd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ $(GNAME DeclDef):
3131
$(GLINK2 version, DebugSpecification)
3232
$(GLINK2 version, VersionSpecification)
3333
$(GLINK2 version, StaticAssert)
34-
$(GLINK2 template, TemplateDeclaration)
35-
$(GLINK2 template-mixin, TemplateMixinDeclaration)
3634
$(GLINK2 template-mixin, TemplateMixin)
3735
$(GLINK MixinDeclaration)
3836
$(GLINK EmptyDeclaration)

0 commit comments

Comments
 (0)