array error msg improvement

Profile Anaysis via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 2 08:08:37 PST 2017


Error		Error: cannot append type int[] to type int[2][]	

This is because I tried to slice too small [0..1] when I was 
suppose to do [0..2](which passes). The error message is 
deceiving because it makes it look like the append can't happen 
when it can.

Should be something like

Error		Error: cannot append type int[1] to type int[2][]	



More information about the Digitalmars-d mailing list