Author: raja
Date: 2006-09-22 10:09:55 -0400 (Fri, 22 Sep 2006)
New Revision: 65816

Modified:
   trunk/mcs/mcs/ChangeLog
   trunk/mcs/mcs/literal.cs
Log:
* literal.cs (NullDefault): The type of default(IFoo) is 'IFoo',
not the null type.


Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog     2006-09-22 13:54:51 UTC (rev 65815)
+++ trunk/mcs/mcs/ChangeLog     2006-09-22 14:09:55 UTC (rev 65816)
@@ -1,5 +1,8 @@
 2006-09-22  Raja R Harinath  <[EMAIL PROTECTED]>
 
+       * literal.cs (NullDefault): The type of default(IFoo) is 'IFoo',
+       not the null type.
+
        Fix part of #79451
        * typemanager.cs (Closure.Filter): Consider PrivateScope attributes.
        * decl.cs (DeclSpace.FindMemberToOverride): Likewise.  Reorganize

Modified: trunk/mcs/mcs/literal.cs
===================================================================
--- trunk/mcs/mcs/literal.cs    2006-09-22 13:54:51 UTC (rev 65815)
+++ trunk/mcs/mcs/literal.cs    2006-09-22 14:09:55 UTC (rev 65816)
@@ -117,10 +117,10 @@
        {
                Expression defaultExpression;
 
-               public NullDefault(Location loc, Expression defaultExpression)
+               public NullDefault (Location loc, Expression defaultExpression)
                        : base (loc)
                {
-                       type = TypeManager.null_type;
+                       type = defaultExpression.Type;
                        this.defaultExpression = defaultExpression;
                }
 

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

Reply via email to