Mercurial > projects > ldc
view test/bug41.d @ 327:781af50846b2 trunk
[svn r348] Switch on class invariants (except in release mode).
Generate correct member for classInvariant in classinfo struct.
author | ChristianK |
---|---|
date | Thu, 10 Jul 2008 22:00:27 +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"); }