[Issue 18939] Wrong order slice lengths in array length mismatch error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Sep 11 02:33:32 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18939

Heromyth <bitworld at qq.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bitworld at qq.com

--- Comment #1 from Heromyth <bitworld at qq.com> ---
Here is another test:

__gshared string[] zeros;
shared static this() {
   zeros[] = new string[64]; // There is no callstatck info. 
// It just give these error:
//  object.Error@(0): Array lengths don't match for copy: 64 != 0

// If I have a big source file, it really hard to locate the error.
}

void main()
{
   // zeros[] = new string[64]; // Can get the callstatck info
}

--


More information about the Digitalmars-d-bugs mailing list