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
[metadata] Use MONO_PROFILER_API on MonoClass getters in checked builds (#20440)
[mono-project.git]
/
mcs
/
errors
/
cs0313-2.cs
blob
7489c65f72002d9e042c2bf9a502cb6c9b8bb4f5
1
// CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<I>.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint `I'
2
// Line: 20
3
4
struct
S
:
I
5
{
6
}
7
8
interface
I
9
{
10
}
11
12
class
C
<
U
>
13
{
14
static void
Foo
<
T
> (
T
value
)
where T
:
U
15
{
16
}
17
18
static void
Bar
(
S
?
s
)
19
{
20
C
<
I
>.
Foo
(
s
);
21
}
22
}