Module bug?

Sönke Ludwig sludwig+d at outerproduct.org
Mon Dec 18 13:21:59 UTC 2017


Am 18.12.2017 um 13:14 schrieb Luís Marques:
> 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
> 

https://issues.dlang.org/show_bug.cgi?id=11847
https://github.com/dlang/dmd/pull/7218

(had some trouble finding it due to the changed title)


More information about the Digitalmars-d mailing list