mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 20:03:14 +01:00
27 lines
319 B
D
27 lines
319 B
D
extern(C) int printf(char*,...);
|
|
|
|
class MyClass
|
|
{
|
|
this(int i = 4)
|
|
{
|
|
inner = this.new InnerClass;
|
|
}
|
|
|
|
class InnerClass : Object.Monitor
|
|
{
|
|
void lock() {}
|
|
void unlock() {}
|
|
}
|
|
|
|
InnerClass inner;
|
|
}
|
|
|
|
void func()
|
|
{
|
|
scope c = new MyClass(42);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
func();
|
|
} |