5 fail_compilation/test15703.d(16): Error: cast from `Object[]` to `uint[]` not allowed in safe code
6 fail_compilation/test15703.d(18): Error: cast from `object.Object` to `const(uint)*` not allowed in safe code
7 fail_compilation/test15703.d(21): Error: cast from `uint[]` to `Object[]` not allowed in safe code
11 // https://issues.dlang.org/show_bug.cgi?id=15703
15 auto objs
= [ new Object() ];
16 auto longs
= cast(size_t
[]) objs
; // error
17 auto longc
= cast(const(size_t
)[]) objs
; // ok
18 auto longp
= cast(const(size_t
)*) objs
[0]; // error
21 objs
= cast(Object
[]) al
; // error
23 auto am
= cast(int[])[];
29 auto b
= cast(const(uint[])) a
;