Mercurial > projects > ldc
view tangotests/t.d @ 250:fc9c1a0eabbd trunk
[svn r267] Fixed debug info for global variables.
Cleaned up the debug info code in general.
author | lindquist |
---|---|
date | Wed, 11 Jun 2008 20:53:26 +0200 |
parents | 336ec4f4bbb3 |
children |
line wrap: on
line source
interface MyInterface { int func(); } class MyClass : MyInterface { int var; int func() { return var; } } void func1(MyInterface i) { int delegate() dg = &i.func; func2(dg); } extern(C) int printf(char*, ...); void func2(int delegate() dg) { int i = dg(); printf("%d\n", i); } void main() { auto c = new MyClass; c.var = 42; func1(c); }