www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Internal Error ..\ztc\cod1.c 2244

Internal error: ..\ztc\cod1.c 2244

class StdFile
{
     private import std.file;
     alias std.file.getcwd getcwd;
}

void main()
{
     StdFile f = new StdFile();
     printf("%.*s\n", f.getcwd());
}


When I take out the alias, the code compiles and runs. If the alias 
shouldn't be there, the compiler should just say so. :)

-- 
Justin (a/k/a jcc7)
http://jcc_7.tripod.com/d/
Jun 21 2004