projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[corlib] Use temp directory for assemblies in SaveTest.Save() (#5727)
[mono.git]
/
mcs
/
errors
/
cs0312.cs
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
}