mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 16:43:13 +01:00
[svn r115] Implemented the ClassInfo.defaultConstructor member.
This commit is contained in:
18
test/classinfo4.d
Normal file
18
test/classinfo4.d
Normal file
@@ -0,0 +1,18 @@
|
||||
module classinfo4;
|
||||
|
||||
class C
|
||||
{
|
||||
}
|
||||
|
||||
class D
|
||||
{
|
||||
this()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
void main()
|
||||
{
|
||||
assert(C.classinfo.defaultConstructor is null);
|
||||
assert(D.classinfo.defaultConstructor !is null);
|
||||
}
|
||||
Reference in New Issue
Block a user