File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5852,8 +5852,10 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
58525852 {
58535853 arguments.push(makeTemplateItem(Id.InterpolatedExpression, str));
58545854 Expressions* mix = new Expressions(new StringExp(e.loc, str));
5855- // FIXME: i'd rather not use MixinExp but idk how to do it lol
5856- arguments.push(new MixinExp(e.loc, mix));
5855+ auto mixinExp = new MixinExp(e.loc, mix);
5856+ auto res = mixinExp.expressionSemantic(sc);
5857+ res = resolveProperties(sc, res);
5858+ arguments.push(res);
58575859 }
58585860 }
58595861
Original file line number Diff line number Diff line change 1+ // https://github.com/dlang/dmd/issues/22769
2+
3+ int foo ()() => 0 ;
4+
5+ void bar ()
6+ {
7+ cast (void ) i" $(foo)" ;
8+ }
9+
10+ struct OutBuffer
11+ {
12+ void opOpAssign (string op, T... )(T args) {}
13+ }
14+
15+ void qux ()
16+ {
17+ OutBuffer buf;
18+ buf ~= i" $(foo)" ;
19+ }
You can’t perform that action at this time.
0 commit comments