Mercurial > projects > ldc
view tangotests/k.d @ 298:3b8ada4c9f8b trunk
[svn r319] Call substatement->toIR in LabelStatement::toIR even when the label is inside an asm block.
author | ChristianK |
---|---|
date | Tue, 24 Jun 2008 17:24:55 +0200 |
parents | 44a95ac7368a |
children |
line wrap: on
line source
interface Inter { int func(); } extern(C) int printf(char*, ...); class InterClass : Inter { int func() { return printf("InterClass.func()\n"); } } alias int delegate() dg_t; void main() { scope c = new InterClass; { Inter i = cast(Inter)c; { dg_t dg = &i.func; { int j = dg(); } } } }