+2007-03-10 Marek Safar <marek.safar@gmail.com>
+
+ * generic.cs (TypeArguments.Resolve): Avoid redundant checks.
+
2007-03-09 Raja R Harinath <rharinath@novell.com>
* cs-parser.jay (WHERE): Move before QUERY_FIRST_TOKEN. 'where'
ok = false;
continue;
}
- if (te is TypeParameterExpr)
+
+ atypes[i] = te.Type;
+
+ if (te is TypeParameterExpr) {
has_type_args = true;
+ continue;
+ }
-#if !MS_COMPATIBLE
if (te.Type.IsSealed && te.Type.IsAbstract) {
Report.Error (718, Location, "`{0}': static classes cannot be used as generic arguments",
te.GetSignatureForError ());
return false;
}
-#endif
+
if (te.Type.IsPointer) {
Report.Error (306, Location, "The type `{0}' may not be used " +
"as a type argument", TypeManager.CSharpName (te.Type));
Expression.Error_VoidInvalidInTheContext (Location);
return false;
}
-
- atypes [i] = te.Type;
}
return ok;
}