import std.algorithm; import std.stdio : writeln; void bar() { std.stdio.writeln(); } ---- Without importing std.algorithm this will fail. This is because std.algorithm make the std package available which in turn 'knows' stdio because of the selective import. There are two solutions. Either disallowing std.stdio or making std.stdio available for selective imports too.
*** This issue has been marked as a duplicate of issue 313 ***