You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Jacob Carlborg (@jacob-carlborg) reported this on 2017-12-27T13:51:58Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=18131
Description
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 fooThe text was updated successfully, but these errors were encountered: