Author: manjula
Date: 2005-06-10 00:46:58 -0400 (Fri, 10 Jun 2005)
New Revision: 45730

Modified:
   trunk/mcs/mbas/ChangeLog
   trunk/mcs/mbas/assign.cs
Log:
Allow New Date assignment to other types


Modified: trunk/mcs/mbas/ChangeLog
===================================================================
--- trunk/mcs/mbas/ChangeLog    2005-06-10 04:09:52 UTC (rev 45729)
+++ trunk/mcs/mbas/ChangeLog    2005-06-10 04:46:58 UTC (rev 45730)
@@ -1,3 +1,6 @@
+2005-06-10 Manjula GHM <[EMAIL PROTECTED]>
+       *assign.cs: Allow New Date assignment to other types
+
 2005-06-08 Rafael Teixeira <[EMAIL PROTECTED]>
        * AssemblyInfo.cs : 
                - Added informational attributes that Mono.GetOptions shows in 
the help screen.

Modified: trunk/mcs/mbas/assign.cs
===================================================================
--- trunk/mcs/mbas/assign.cs    2005-06-10 04:09:52 UTC (rev 45729)
+++ trunk/mcs/mbas/assign.cs    2005-06-10 04:46:58 UTC (rev 45730)
@@ -388,15 +388,6 @@
                                        source = e.Resolve (ec);
                                        return this;
                                }
-                               if (source_type == TypeManager.date_type && 
(source_type!=target_type)) {
-                                       if( target_type != 
TypeManager.object_type) {
-                                               Report.Error (30311, loc,
-                                                       " Value of type " + 
source_type +
-                                                       " cannot be converted 
to " + target_type);
-                                               return null;
-                                       }
-                                       
-                               }
                                if (target_type.IsValueType) {
                                        New n = (New) source;
                                        n.ValueTypeVariable = target;

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

Reply via email to