d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail18093.d
blob4eb3663afc6d8f814e8e9c1855c0d316b100f260
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail18093.d(19): Error: function `void fail18093.GenericTransitiveVisitor!(ASTCodegen).GenericTransitiveVisitor.ParseVisitMethods!(ASTCodegen).visit()` does not override any function, did you mean to override `extern (C++) void fail18093.ParseTimeVisitor!(ASTCodegen).ParseTimeVisitor.visit()`?
4 fail_compilation/fail18093.d(24): Error: mixin `fail18093.GenericTransitiveVisitor!(ASTCodegen).GenericTransitiveVisitor.ParseVisitMethods!(ASTCodegen)` error instantiating
5 fail_compilation/fail18093.d(27): Error: template instance `fail18093.GenericTransitiveVisitor!(ASTCodegen)` error instantiating
6 ---
7 * https://issues.dlang.org/show_bug.cgi?id=18093
8 */
11 struct ASTCodegen {}
13 extern (C++) class ParseTimeVisitor(AST)
15 void visit() {}
17 template ParseVisitMethods(AST)
19 override void visit() {}
22 class GenericTransitiveVisitor(AST) : ParseTimeVisitor!AST
24 mixin ParseVisitMethods!AST;
27 alias SemanticTimeTransitiveVisitor = GenericTransitiveVisitor!ASTCodegen;