# HG changeset patch # User aziz # Date 1186744865 0 # Node ID 6cf3a506910977051ec4a5396836292b940f000e # Parent 559d5d62e0c1394496a41fa38b8b6ce4256339ee - Fix: adding only non-null members to this.children in EnumDeclaration ctor. diff -r 559d5d62e0c1 -r 6cf3a5069109 trunk/src/Declarations.d --- a/trunk/src/Declarations.d Thu Aug 09 21:39:03 2007 +0000 +++ b/trunk/src/Declarations.d Fri Aug 10 11:21:05 2007 +0000 @@ -103,7 +103,11 @@ { super(hasBody); mixin(set_kind); - this.children = values; + if (baseType) + this.children = [baseType]; + foreach(value; values) + if (value) + this.children ~= value; this.name = name; this.baseType = baseType; this.members = members;