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
[Wasm] Fix memory override in mono_wasm_add_assembly
[mono-project.git]
/
mcs
/
tests
/
gtest-416.cs
blob
a61546ea6636ca159a96489227dbfe4b0f6ace06
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
}