Issue 13188 - @safe std.array.array of an array of Typedef
Summary: @safe std.array.array of an array of Typedef
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86 Windows
: P1 enhancement
Assignee: No Owner
URL:
Keywords: safe
Depends on:
Blocks:
 
Reported: 2014-07-22 17:22 UTC by bearophile_hugs
Modified: 2016-06-07 11:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2014-07-22 17:22:24 UTC
void main() @safe {
    import std.typecons: Typedef;
    import std.array: array;
    [Typedef!int(1)].array;
}


DMD 2.066beta4 gives:

test.d(4,21): Error: safe function 'D main' cannot call system function 'std.array.array!(Typedef!(int, 0, null)[]).array'
Comment 1 Walter Bright 2016-06-07 11:39:05 UTC
Works with current compiler.