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
[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git]
/
mcs
/
errors
/
cs0411-25.cs
blob
c7f92fb96d792d8ba2ef2e180ae1cdc58b5bd2fc
1
// CS0411: The type arguments for method `C.Foo<T>(System.Func<T>)' cannot be inferred from the usage. Try specifying the type arguments explicitly
2
// Line: 10
3
4
using
System
;
5
6
public class
C
7
{
8
public static void
Main
()
9
{
10
Foo
(() =>
throw null
);
11
}
12
13
static void
Foo
<
T
> (
Func
<
T
>
arg
)
14
{
15
}
16
}