blob: 5a5233cde9ef6548233f7f5922ab1d7803784a25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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
{
public static void Main ()
{ }
}
|