projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
use new GetOriginalType method
[mono.git]
/
mcs
/
tests
/
gtest-227.cs
1
using System;
2
using System.Runtime.CompilerServices;
3
4
/* GenDebugConstr.cs
5
* Simple test case for gmcs issue (should compile).
6
* Bryan Silverthorn <bsilvert@cs.utexas.edu>
7
*/
8
9
public interface Indexed
10
{
11
[IndexerName("Foo")]
12
int this [int ix] {
13
get;
14
}
15
}
16
17
public class Foo<G>
18
where G : Indexed
19
{
20
public static void Bar()
21
{
22
int i = default(G) [0];
23
}
24
}
25
26
class X
27
{
28
static void Main ()
29
{ }
30
}