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-06-05 Jb Evain <jbevain@novell.com>
[mcs.git]
/
errors
/
gcs0309-2.cs
blob
6411c3d42273ecc86e1c95bc081348f8bef22763
1
// CS0309: The type `B' must be convertible to `I' in order to use it as parameter `T' in the generic type or method `Foo<T>'
2
// Line: 21
3
4
public class
Foo
<
T
>
5
where T
:
A
,
I
6
{
7
}
8
9
public interface
I
10
{ }
11
12
public class
A
13
{ }
14
15
public class
B
:
A
16
{ }
17
18
class
X
19
{
20
Foo
<
B
>
foo
;
21
22
static void
Main
()
23
{
24
}
25
}