projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* ecore.cs (Expression.Error_ValueCannotBeConverted): Add special
[mono.git]
/
mcs
/
errors
/
gcs0452-2.cs
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
}