svn path=/trunk/mcs/; revision=144720
if (resolved == null) {
//
// Field initializers are tricky for partial classes. They have to
- // share same costructor (block) but they have they own resolve scope.
+ // share same constructor (block) but they have they own resolve scope.
//
IMemberContext old = ec.MemberContext;
Value = value_pi.GetGetMethod (false);
// When compiling corlib
- if (type.Module == RootContext.ToplevelTypes.Builder) {
+ if (TypeManager.IsBeingCompiled (type)) {
TypeContainer tc = TypeManager.LookupGenericTypeContainer (type);
// TODO: check for correct overload
}
#if MS_COMPATIBLE
- if (UnderlyingType.Module == RootContext.ToplevelTypes.Builder) {
+ if (TypeManager.IsBeingCompiled (UnderlyingType)) {
ConstructorInfo cinfo = TypeManager.DropGenericTypeArguments (type).GetConstructors ()[0];
Constructor = TypeBuilder.GetConstructor (type, cinfo);
return;