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
[System.Data] Try to fix random DataViewTest.DefaultColumnNameAddListChangedTest...
[mono-project.git]
/
mcs
/
tests
/
gtest-variance-3.cs
blob
4af8a27d82a224b3bb763173c884f18dcbabd80d
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
}