--- /dev/null
+// CS0037: Cannot convert null to `int' because it is a value type
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void Main ()
+ {
+ var e = new[] { 1, null };
+ }
+}
+
--- /dev/null
+// CS0825: The contextual keyword `var' may only appear within a local variable declaration
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ var v = "a";
+}
+
--- /dev/null
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void Main ()
+ {
+ var e = new[] { null };
+ }
+}
+
--- /dev/null
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 13
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void TestMethod ()
+ {
+ }
+
+ static void Main ()
+ {
+ var e = new[] { TestMethod () };
+ }
+}
+
--- /dev/null
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void Main ()
+ {
+ var e = new[,,,] { 1, 2 };
+ }
+}
+
--- /dev/null
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void Main ()
+ {
+ var e = new[] { delegate {} };
+ }
+}
+
--- /dev/null
+// CS0826: The type of an implicitly typed array cannot be inferred from the initializer. Try specifying array type explicitly
+// Line: 9
+// Compiler options: -langversion:linq
+
+public class Test
+{
+ static void Main ()
+ {
+ var e = new[] { };
+ }
+}
+