Author: marek
Date: 2007-08-26 07:07:13 -0400 (Sun, 26 Aug 2007)
New Revision: 84856

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/attribute.cs
Log:
2007-08-26  Marek Safar  <[EMAIL PROTECTED]>

        * attribute.cs (IsClsCompliant): Add nullable types test.
        


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2007-08-26 06:03:16 UTC (rev 84855)
+++ trunk/mcs/mcs/ChangeLog     2007-08-26 11:07:13 UTC (rev 84856)
@@ -1,3 +1,7 @@
+2007-08-26  Marek Safar  <[EMAIL PROTECTED]>
+
+       * attribute.cs (IsClsCompliant): Add nullable types test.
+       
 2007-08-24  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * doc.cs : catch other types of exception than XmlException to

Modified: trunk/mcs/mcs/attribute.cs
===================================================================
--- trunk/mcs/mcs/attribute.cs  2007-08-26 06:03:16 UTC (rev 84855)
+++ trunk/mcs/mcs/attribute.cs  2007-08-26 11:07:13 UTC (rev 84856)
@@ -1585,8 +1585,10 @@
                        }
 
                        bool result;
-                       if (type.IsArray || type.IsByRef)       {
+                       if (type.IsArray || type.IsByRef) {
                                result = IsClsCompliant 
(TypeManager.GetElementType (type));
+                       } else if (TypeManager.IsNullableType (type)) {
+                               result = IsClsCompliant 
(TypeManager.GetTypeArguments (type) [0]);
                        } else {
                                result = AnalyzeTypeCompliance (type);
                        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to