We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1ee0333 + 7686dd0 commit 5f40f5aCopy full SHA for 5f40f5a
src/analysis/final_attribute.d
@@ -110,6 +110,16 @@ public:
110
_parent = saved;
111
}
112
113
+ override void visit(const(MixinTemplateDeclaration) mtd)
114
+ {
115
+ // can't really know where it'll be mixed (class |final class | struct ?)
116
+ }
117
+
118
+ override void visit(const(TemplateDeclaration) mtd)
119
120
+ // regular template are also mixable
121
122
123
override void visit(const(Declaration) d)
124
{
125
const Parent savedParent = _parent;
@@ -266,6 +276,13 @@ public:
266
276
267
277
}, sac);
268
278
279
+ assertAnalyzerWarnings(q{
280
+ mixin template Impl()
281
282
+ protected final void mixin_template_can() {}
283
284
+ }, sac);
285
269
286
// fail
270
287
271
288
assertAnalyzerWarnings(q{
0 commit comments