Mercurial > projects > dil
changeset 300:6cf3a5069109
- Fix: adding only non-null members to this.children in EnumDeclaration ctor.
author | aziz |
---|---|
date | Fri, 10 Aug 2007 11:21:05 +0000 |
parents | 559d5d62e0c1 |
children | caef255a2801 |
files | trunk/src/Declarations.d |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;