Module bug?

Luís Marques luis at luismarques.eu
Mon Dec 18 12:14:40 UTC 2017


Is this a bug?

foo/bar/baz.d:
     module foo.bar.baz;
     alias thisModule = foo.bar.baz;

$ dmd -main -I. foo/bar/baz.d
OK

foo/bar/baz.d:
     module foo.bar.baz;
     alias thisModule = foo.bar.baz;
     import foo;

foo/package.d:
     module foo;

$ dmd -main -I. foo/bar/baz.d
foo/bar/baz.d(2): Error: undefined identifier bar in module foo



More information about the Digitalmars-d mailing list