projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* HttpWebRequestTest.cs: Remove usage of deprecated Assertion class.
[mono.git]
/
mcs
/
errors
/
gcs0309.cs
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
}