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
add comment
[mcs.git]
/
tests
/
gtest-026.cs
blob
039708680d487e8907b3748896fae720d4d0644d
1
// Test access to class fields outside the generic type declaration.
2
3
class
Foo
<
T
>
4
{
5
public
T Hello
;
6
7
public
Foo
()
8
{ }
9
}
10
11
class
X
12
{
13
static void
Main
()
14
{
15
Foo
<
int
>
foo
=
new
Foo
<
int
> ();
16
foo
.
Hello
=
9
;
17
}
18
}