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
This is rejected, but should be accepted:
----
void main()
{
string s = [1, 2, 3];
auto v = new void[3];
v[] = s[]; /* Error: cannot implicitly convert expression (s[]) of type string to void[]*/
}
----
It's accepted with an intermediate step:
----
void main()
{
string s = [1, 2, 3];
auto v = new void[3];
immutable(void)[] intermediate = s;
v[] = intermediate[];
}
----
The text was updated successfully, but these errors were encountered:
ag0aep6g reported this on 2016-04-20T19:27:35Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=15942
Description
The text was updated successfully, but these errors were encountered: