You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this is a bug:
void main() {
double[int][] aa1 = [[1: 2.0], [3: 4]]; // OK
auto aa2 = [[1: 2.0], [3: 4]]; // Error
}
DMD 2.066alpha gives:
test.d(3,36): Error: incompatible types for (([1:2.00000]) : ([3:4])): 'double[int]' and 'int[int]'
The text was updated successfully, but these errors were encountered:
bearophile_hugs reported this on 2014-06-15T07:07:08Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=12925
Description
I don't know if this is a bug: void main() { double[int][] aa1 = [[1: 2.0], [3: 4]]; // OK auto aa2 = [[1: 2.0], [3: 4]]; // Error } DMD 2.066alpha gives: test.d(3,36): Error: incompatible types for (([1:2.00000]) : ([3:4])): 'double[int]' and 'int[int]'The text was updated successfully, but these errors were encountered: