If a symbol is declared with "package" it's not possible to access it inside a unittest block if the module is not inside a package. Example: $ cat foo.d package void bar() {} unittest { bar(); } $ dmd -unittest foo.d foo.d(5): Error: function foo.bar is not accessible from module foo
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17827 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB