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
/
cs0312.cs
blob
431818ff98415d9e7c64131d242a7b66e0f41b39
1
// CS0312: The type `S?' cannot be used as type parameter `T' in the generic type or method `C<S>.Foo<T>(T)'. The nullable type `S?' does not satisfy constraint `S'
2
// Line: 16
3
4
struct
S
5
{
6
}
7
8
class
C
<
U
>
9
{
10
static void
Foo
<
T
> (
T
value
)
where T
:
U
11
{
12
}
13
14
static void
Test
(
S
?
s
)
15
{
16
C
<
S
>.
Foo
(
s
);
17
}
18
}