summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0029-35.cs
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/errors/cs0029-35.cs')
-rw-r--r--mcs/errors/cs0029-35.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mcs/errors/cs0029-35.cs b/mcs/errors/cs0029-35.cs
new file mode 100644
index 0000000000..c2330990f1
--- /dev/null
+++ b/mcs/errors/cs0029-35.cs
@@ -0,0 +1,12 @@
+// CS0029: Cannot implicitly convert type `string' to `int'
+// Line: 10
+// Compiler options: -unsafe
+
+class TestClass
+{
+ public unsafe static void Main ()
+ {
+ int* arr = null;
+ var i = arr["c"];
+ }
+} \ No newline at end of file