repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2009-02-15 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-227.cs
blob
a02073fa986f69f3807c5491cf3e9fe8a6ebb08d
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
}