You said tests fail?

class SourceResult
{
        private const
        {
                string file;
                size_t line;
        }
this(string fileName = __FILE__, size_t line = __LINE__, size_t range = 6) nothrow
        {
                this.file = fileName;
                this.line = line;
                if (!fileName.exists)
                {
                        return;
                }
        }
}

unittest
{
        auto result = new SourceResult("test/values.d", 26);
        auto msg = result.file;
}

Does this fail too?

Reply via email to