[utils] Add check for ANDROID_UNIFIED_HEADERS to mono-compiler.h (#5742)
[mono.git] / mcs / errors / cs0186.cs
index f15e79b02e5f9f62384d5fbcfb7034c2e5eadb59..d4f5468984479759d52dd3aa773d54b103b979c5 100644 (file)
@@ -1,11 +1,12 @@
-// cs0186.cs: Use of null is not valid in this context\r
-// Line: 8\r
-\r
-using System;\r
-\r
-class ClassMain {\r
-        public static void Main() {\r
-            Exception e = (object)null as Exception;\r
-        }\r
-}\r
-\r
+// CS0186: Use of null is not valid in this context
+// Line: 8
+
+using System.Collections;
+
+class ClassMain {    
+       public static void Main() {
+               foreach (System.Type type in (IEnumerable)null) {
+               }                    
+       }
+}
+