mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
28 lines
236 B
D
28 lines
236 B
D
module mini.nested14;
|
|
|
|
extern(C) int printf(char*, ...);
|
|
|
|
class C
|
|
{
|
|
void foo()
|
|
{
|
|
void bar()
|
|
{
|
|
car();
|
|
}
|
|
|
|
bar();
|
|
}
|
|
|
|
void car()
|
|
{
|
|
printf("great\n");
|
|
}
|
|
}
|
|
|
|
void main()
|
|
{
|
|
scope c = new C;
|
|
c.foo();
|
|
}
|