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
Comment #1 by robert.schadek — 2024-12-13T18:55:46Z