Files
ldc/tangotests/k.d
Tomas Lindquist Olsen 4505b9b006 [svn r137] Many fixes towards tango.io.Console working, but not quite there yet...
In particular, assertions has been fixed to include file/line info, and much more!
2008-01-14 05:11:54 +01:00

32 lines
391 B
D

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();
}
}
}
}