Mercurial > projects > ldc
view test/nested5.d @ 307:7ade5e035beb trunk
[svn r328] Fixed an issue with interfaces where the vtable type of a interface implemented could be invalid. Fixes several tango modules like, FileStream, ServerSocket
and most tina cluster modules :)
author | lindquist |
---|---|
date | Sat, 28 Jun 2008 03:45:18 +0200 |
parents | d9d5d59873d8 |
children |
line wrap: on
line source
module nested5; extern(C) int printf(char*, ...); void main() { int i = 42; printf("Hello world %d\n", i++); class C { void func() { printf("Hello world %d\n", i++); //i++; } } scope c = new C; c.func(); assert(i == 44); }