The code...
tester.d
module main;
import std.stdio;
import test; <---dmd choking here.
int main(string[] args)
{
writefln("Hello World\n");
writefln(add(a, b));
return 0;
}
test.d
module test;
int add(int a, int b)
{
return a + b;
}