view test/bug41.d @ 170:6476da35a0fe trunk

[svn r186] Fixed 'delete this'.
author lindquist
date Tue, 06 May 2008 03:46:43 +0200
parents b706170e24a9
children
line wrap: on
line source

module bug41;

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