Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / gtest-227.cs
blob5a5233cde9ef6548233f7f5922ab1d7803784a25
1 using System;
2 using System.Runtime.CompilerServices;
4 /* GenDebugConstr.cs
5 * Simple test case for gmcs issue (should compile).
6 * Bryan Silverthorn <bsilvert@cs.utexas.edu>
7 */
9 public interface Indexed
11 [IndexerName("Foo")]
12 int this [int ix] {
13 get;
17 public class Foo<G>
18 where G : Indexed
20 public static void Bar()
22 int i = default(G) [0];
26 class X
28 public static void Main ()
29 { }