projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[System.Net.Http] HttpClient timeout range checks. Fixes #25755
[mono.git]
/
mcs
/
tests
/
gtest-variance-3.cs
1
delegate T Foo<out T> ();
2
3
public class Test
4
{
5
public static int Main ()
6
{
7
string message = "Hello World!";
8
Foo<string> foo = () => message;
9
if (Bar (foo) != message.GetHashCode ())
10
return 1;
11
12
return 0;
13
}
14
15
static int Bar (Foo<object> foo)
16
{
17
return foo().GetHashCode ();
18
}
19
}