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
[Http]: Cosmetic, remove some dead code.
[mono-project.git]
/
mcs
/
errors
/
cs0311.cs
blob
6ce17f5555918ee47b9290114000dbe6ffb901b7
1
// CS0311: The type `B' cannot be used as type parameter `T' in the generic type or method `Foo<T>'. There is no implicit reference conversion from `B' to `A'
2
// Line: 19
3
4
public class
Foo
<
T
>
5
where T
:
A
6
{
7
}
8
9
public class
A
10
{
11
}
12
13
public class
B
14
{
15
}
16
17
class
X
18
{
19
Foo
<
B
>
foo
;
20
21
static void
Main
()
22
{
23
}
24
}