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:
authorMartin Baulig <martin@novell.com>2005-11-17 20:57:40 +0300
committerMartin Baulig <martin@novell.com>2005-11-17 20:57:40 +0300
commit9c4b68c201bbcc6fa1daf87f95a876730292a7d9 (patch)
tree581105378bdb155c449a191a476c7a7f86d64c78 /mcs/tests/gtest-227.cs
parent5c566a7470d9487667d53c5dd1f402c9d73c31a7 (diff)
New test.
svn path=/trunk/mcs/; revision=53201
Diffstat (limited to 'mcs/tests/gtest-227.cs')
-rw-r--r--mcs/tests/gtest-227.cs30
1 files changed, 30 insertions, 0 deletions
diff --git a/mcs/tests/gtest-227.cs b/mcs/tests/gtest-227.cs
new file mode 100644
index 00000000000..a02073fa986
--- /dev/null
+++ b/mcs/tests/gtest-227.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Runtime.CompilerServices;
+
+/* GenDebugConstr.cs
+ * Simple test case for gmcs issue (should compile).
+ * Bryan Silverthorn <bsilvert@cs.utexas.edu>
+ */
+
+public interface Indexed
+{
+ [IndexerName("Foo")]
+ int this [int ix] {
+ get;
+ }
+}
+
+public class Foo<G>
+ where G : Indexed
+{
+ public static void Bar()
+ {
+ int i = default(G) [0];
+ }
+}
+
+class X
+{
+ static void Main ()
+ { }
+}