Skip to content

Conversation

jmdavis
Copy link
Member

@jmdavis jmdavis commented Jun 13, 2012

std.array.array fails to compile with ranges of immutable elements which have a length property

This wasn't compiling:

import std.array;

void main()
{
    dstring d = "hello world";
    auto e = array(d);
}

but instead gave this error

/home/jmdavis/dmd2/linux/bin/../../src/phobos/std/array.d(55): Error: result[i]
isn't mutable
q.d(6): Error: template instance std.array.array!(immutable(dchar)[]) error
instantiating

std.array.array fails to compile with ranges of immutable elements which have a length property
@alexrp
Copy link
Contributor

alexrp commented Jun 13, 2012

Looks OK to me.

jmdavis added a commit that referenced this pull request Jun 14, 2012
@jmdavis jmdavis merged commit c05e6e4 into dlang:master Jun 14, 2012
@jmdavis
Copy link
Member Author

jmdavis commented Jun 14, 2012

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants