I am not sure, but perhaps this shows an inconsistency worth fixing: long[] foo() { return [1]; // OK } void main() { long[] a; auto b1 = a ~ 0; // OK auto b2 = a ~ [0]; // Error auto c1 = 0 ~ a; // OK auto c2 = [0] ~ a; // Error } dmd 2.065beta2 gives: test.d(7): Error: incompatible types for ((a) ~ ([0])): 'long[]' and 'int[]' test.d(9): Error: incompatible types for (([0]) ~ (a)): 'int[]' and 'long[]'
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17638 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB