Comment #0 by bearophile_hugs — 2013-05-23T09:57:11Z
This program shows a dis-uniformity that maybe should be removed:
void main() {
void main() {
uint[] a;
a ~= 0; // OK.
a ~= [0]; // OK.
a ~= [-1]; // OK(?)
auto b1 = a ~ 0; // OK.
auto b2 = a ~ [0]; // Error.
}
DMD 2.063beta5 gives:
test.d(7): Error: incompatible types for ((a) ~ ([0])): 'uint[]' and 'int[]'
Comment #1 by yebblies — 2013-11-21T07:36:31Z
*** This issue has been marked as a duplicate of issue 10476 ***