projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[utils] Add check for ANDROID_UNIFIED_HEADERS to mono-compiler.h (#5742)
[mono.git]
/
mcs
/
errors
/
cs0315-3.cs
1
// CS0315: The type `int' cannot be used as type parameter `U' in the generic type or method `A<int?>.Test<U>()'. There is no boxing conversion from `int' to `int?'
2
// Line: 19
3
4
class A<T>
5
{
6
public static void Test<U> () where U : T
7
{
8
}
9
}
10
11
class B : A<int?>
12
{
13
}
14
15
class Program
16
{
17
public static void Main ()
18
{
19
B.Test<int> ();
20
}
21
}