Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Safar <marek.safar@gmail.com>2010-05-13 00:49:34 +0400
committerMarek Safar <marek.safar@gmail.com>2010-05-13 00:49:34 +0400
commit8d6fb4420087e9c64f4615ac8ee6ef0952a4da1c (patch)
treed585c50b14eeb4d4396ab92344b1bcb0ef2bc182 /mcs/tests/test-764.cs
parentbace3fc69cbcc70544153794b135107442364697 (diff)
New tests.
svn path=/trunk/mcs/; revision=157263
Diffstat (limited to 'mcs/tests/test-764.cs')
-rw-r--r--mcs/tests/test-764.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/mcs/tests/test-764.cs b/mcs/tests/test-764.cs
new file mode 100644
index 00000000000..4f554832f3c
--- /dev/null
+++ b/mcs/tests/test-764.cs
@@ -0,0 +1,28 @@
+using System;
+
+class Item
+{
+ internal static object Field = "Test";
+}
+
+class Caller
+{
+ public string this[string x]
+ {
+ get { return x; }
+ }
+
+ public int this[int x]
+ {
+ get { return x; }
+ }
+
+ public void Foo ()
+ {
+ var v = Item.Field.ToString ();
+ }
+
+ public static void Main ()
+ {
+ }
+}