1 // https://issues.dlang.org/show_bug.cgi?id=18976
3 class Expression
: Statement
{}
6 class AssertSemanticVisitor
8 void visit (const Statement node
) { }
11 class ExpressionVisitor
: AssertSemanticVisitor
13 public void visit (Expression
) { }
15 alias visit
= typeof(super).visit
;
18 class ExpressionVisitor2
: AssertSemanticVisitor
20 public void visit (Expression
) { }
22 alias visit
= AssertSemanticVisitor
.visit
;
27 scope x1
= new ExpressionVisitor
;
28 scope x2
= new ExpressionVisitor
;
29 scope y
= new Statement
;