Hi,

for following coding there is an error during compilation:

  module utils;

  package string toBulkString(string s)
  {
          import std.string: format;
          return "$%s\r\n%s\r\n".format(s.length, s);
  }

  unittest
  {
          string actual = "foobar".toBulkString();
          //...
  }

source\utils.d(11,39): Error: function utils.toBulkString is not accessible from module utils

The error disappears if I change the visibility attribute from package to private.
This seems to be a bug, is it?

Version: DMD v2.069.0-b2

Kind regards
André

Reply via email to