-// 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) {
+ }
+ }
+}
+