On Friday, 15 December 2017 at 13:56:41 UTC, Kagamin wrote:
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?
I can not reproduce the crash with this example...