Author: marek
Date: 2007-01-17 14:08:31 -0500 (Wed, 17 Jan 2007)
New Revision: 71224
Added:
trunk/mcs/errors/gcs0403-3.cs
Modified:
trunk/mcs/errors/cs0266-9.cs
Log:
New test.
Modified: trunk/mcs/errors/cs0266-9.cs
===================================================================
--- trunk/mcs/errors/cs0266-9.cs 2007-01-17 18:50:05 UTC (rev 71223)
+++ trunk/mcs/errors/cs0266-9.cs 2007-01-17 19:08:31 UTC (rev 71224)
@@ -1,4 +1,4 @@
-// cs0023: Operator `~' cannot be applied to operand of type `ulong'
+// CS0266: Cannot implicitly convert type 'E2' to 'E1'. An explicit conversion
exists (are you missing a cast?)
// Line : 6
enum E1 { A }
Added: trunk/mcs/errors/gcs0403-3.cs
===================================================================
--- trunk/mcs/errors/gcs0403-3.cs 2007-01-17 18:50:05 UTC (rev 71223)
+++ trunk/mcs/errors/gcs0403-3.cs 2007-01-17 19:08:31 UTC (rev 71224)
@@ -0,0 +1,10 @@
+// CS0403: Cannot convert null to the type parameter `T' because it could be a
value type. Consider using `default (T)' instead
+// Line: 8
+
+class X
+{
+ public static T CreateMethod<T> ()
+ {
+ return (T)null;
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches