← Back to index
|
Original Bugzilla link
Bug 13188 – @safe std.array.array of an array of Typedef
Status
RESOLVED
Resolution
WORKSFORME
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2014-07-22T17:22:00Z
Last change time
2016-06-07T11:39:05Z
Keywords
safe
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2014-07-22T17:22:24Z
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
by bugzilla — 2016-06-07T11:39:05Z
Works with current compiler.