Author: toshok
Date: 2008-02-06 00:17:55 -0500 (Wed, 06 Feb 2008)
New Revision: 94992
Modified:
trunk/moon/src/typegen.cs
Log:
typegen.sh is throwing an exception
Modified: trunk/moon/src/typegen.cs
===================================================================
--- trunk/moon/src/typegen.cs 2008-02-06 04:31:10 UTC (rev 94991)
+++ trunk/moon/src/typegen.cs 2008-02-06 05:17:55 UTC (rev 94992)
@@ -134,8 +134,15 @@
contprops [c.Trim ()] =
next_content_property;
}
}
- if (p != null && p != string.Empty)
- bases.Add (c.Trim (), p.Trim ());
+ if (p != null && p != string.Empty) {
+ if (bases.ContainsKey (c.Trim())) {
+ Console.WriteLine ("Adding {0}
-> {1} more than once to `bases' collection",
+ c.Trim (),
p.Trim ());
+ }
+ else {
+ bases.Add (c.Trim (), p.Trim
());
+ }
+ }
next_content_property = null;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches