projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
gtest-416.cs
1
public class Z { }
2
3
public class A<X, Y>
4
where Y : Z
5
where X : Y
6
{
7
public X Foo (Y y)
8
{
9
return y as X;
10
}
11
}
12
13
public class Foo
14
{
15
public static int Main ()
16
{
17
var a = new A<Z, Z> ();
18
if (a.Foo (new Z ()) == null)
19
return 1;
20
21
return 0;
22
}
23
}