projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Add expression bodied syntax for accessors. Fixes #54991
[mono.git]
/
mcs
/
errors
/
cs0311-2.cs
1
// CS031: 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 `I'
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
}