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
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-276.cs
blob
01937e61f4506e7f46dde16f5af444c5077370c0
1
using
System
;
2
using
System
.
Collections
.
Generic
;
3
4
class
Tests
{
5
6
public static int
Main
() {
7
int
[]
x
=
new int
[]
{100, 200}
;
8
9
GenericClass
<
int
>.
Z
(
x
,
0
);
10
11
return
0
;
12
}
13
14
class
GenericClass
<
T
> {
15
public static
T
Z
(
IList
<
T
>
x
,
int
index
)
16
{
17
return
x
[
index
];
18
}
19
}
20
}