Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #34 from yebblies/issue1692
Browse files Browse the repository at this point in the history
Issue 1692 - Abstract class dynamic creation bug
  • Loading branch information
WalterBright committed Oct 14, 2011
2 parents 9a8a328 + 27d41bb commit b727000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/object_.d
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,7 @@ class TypeInfo_Class : TypeInfo
// 8: // has constructors
// 16: // has xgetMembers member
// 32: // has typeinfo member
// 64: // is not constructable
void* deallocator;
OffsetTypeInfo[] m_offTi;
void function(Object) defaultConstructor; // default Constructor
Expand Down Expand Up @@ -825,6 +826,8 @@ class TypeInfo_Class : TypeInfo
{
if (m_flags & 8 && !defaultConstructor)
return null;
if (m_flags & 64) // abstract
return null;
Object o = _d_newclass(this);
if (m_flags & 8 && defaultConstructor)
{
Expand Down

0 comments on commit b727000

Please sign in to comment.