Files
ldc/test/bug41.d
Tomas Lindquist Olsen 9804fe0fa3 [svn r77] Fixed foreach on slice.
Fixed some nested function problems when accessing outer function parameters.
Major changes to handling of structs.
Initial support for unions.
Probably more...
2007-10-31 03:11:32 +01:00

11 lines
152 B
D

module bug41;
void main()
{
char[] a = "hello world";
char* ap = a.ptr;
size_t i = 5;
char[] b = ap[0..i];
assert(b == "hello");
}