https://issues.dlang.org/show_bug.cgi?id=18543
Andrea Fontana <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Andrea Fontana <[email protected]> --- Just because you're mixin a single line. Adding \n will solve the problem import std.stdio; void main(string[] args) { mixin("" ~"writeln(\"Hello\");" ~"// Some comment\n" ~"assert(0);" ); } your code sounds like: void main() { writeln("hello"); // Some comment assert(0) } --
