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
[corlib] Simplify RuntimeInformation by getting OS name from the runtime (#13164)
[mono-project.git]
/
mcs
/
errors
/
cs0312-2.cs
blob
bc579b6f36ec9ff05133341dfa5aa7b35d6d851c
1
// CS0312: The type `E?' cannot be used as type parameter `T' in the generic type or method `C<E>.Foo<T>(T)'. The nullable type `E?' does not satisfy constraint `E'
2
// Line: 16
3
4
enum
E
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
(
E
?
e
)
15
{
16
C
<
E
>.
Foo
(
e
);
17
}
18
}