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-05-29 Steven Munroe <munroesj@us.ibm.com>
[mcs.git]
/
errors
/
gcs0452-2.cs
blob
0b4be0eaf56cfa644e847a370bcc5c7e22c43f61
1
// CS0452: The type `int' must be a reference type in order to use it as type parameter `T' in the generic type or method `Foo.Test<T>(ref T)'
2
// Line: 14
3
public class
Foo
4
{
5
public static void
Test
<
T
> (
ref
T t
)
6
where T
:
class
7
{ }
8
}
9
10
public class
C
{
11
public static void
Main
()
12
{
13
int
i
=
0
;
14
Foo
.
Test
<
int
> (
ref
i
);
15
}
16
}