repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Remove useless ip += from MINT_JMP, it is assigned later. (#19217)
[mono-project.git]
/
mcs
/
errors
/
cs0315-3.cs
blob
80ab3db11557a2c8900cc2bfb2d20df918fe1754
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
}