mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
23 lines
291 B
D
23 lines
291 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);
|
|
}
|