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
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
gtest-630.cs
blob
a64851f0a2ab9e33c0522316a3137166f70ff57a
1
public interface
IA
2
{
3
int
Foo
(
int
x
=
0
);
4
}
5
6
public class
A
:
IA
7
{
8
public int
Foo
(
int
x
)
9
{
10
return
x
;
11
}
12
13
private static int
Bar
<
T
> (
T x
)
where T
:
A
,
IA
14
{
15
return
x
.
Foo
();
16
}
17
18
public static int
Main
()
19
{
20
if
(
Bar
(
new
A
()) !=
0
)
21
return
1
;
22
23
return
0
;
24
}
25
}