+2007-01-25 Radek Doulik <rodo@novell.com>
+
+ * ModuleBuilder.cs: return created type from GetType in case the
+ type builder type was already created. Added test-555.cs as
+ regression test.
Tue Jan 23 17:45:07 CET 2007 Paolo Molaro <lupus@ximian.com>
}
if ((result == null) && throwOnError)
throw new TypeLoadException (orig);
- if (result != null && (modifiers != null))
- return create_modified_type (result, modifiers);
- return result;
+ if (result != null && (modifiers != null)) {
+ Type mt = create_modified_type (result, modifiers);
+ if (mt is TypeBuilder)
+ result = mt as TypeBuilder;
+ else
+ return mt;
+ }
+ if (result != null && result.is_created)
+ return result.CreateType ();
+ else
+ return result;
}
internal int get_next_table_index (object obj, int table, bool inc) {