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
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs0313.cs
blob
13ac1b3c80ab0347df02b80aa7aae343e5c8cd57
1
// CS0313: The type `S?' cannot be used as type parameter `T' in the generic type or method `S.Foo<T>(T)'. The nullable type `S?' never satisfies interface constraint `I'
2
// Line: 16
3
4
interface
I
5
{
6
}
7
8
struct
S
:
I
9
{
10
static void
Foo
<
T
> (
T t
)
where T
:
I
11
{
12
}
13
14
static void
Test
(
S
?
s
)
15
{
16
Foo
(
s
);
17
}
18
}