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-09-02 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
gcs0309.cs
blob
91c0703499ef4fe72027edf1d474555cd5522dce
1
// CS0309: The type `B' must be convertible to `A' in order to use it as parameter `T' in the generic type or method `Foo<T>'
2
// Line: 20
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
}