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
/
test-nameof-04.cs
blob
929aa1159f208624578330a1d8818d821a447b89
1
interface
IA
2
{
3
void
M
(
int
arg
);
4
int
Prop { get; set; }
5
}
6
7
interface
IB
8
{
9
void
M
(
string
arg
);
10
void
M
<
T
> (
T arg
);
11
int
Prop { get; set; }
12
}
13
14
interface
I
:
IA
,
IB
15
{
16
void
Extra
(
string
method
=
nameof
(
M
),
string
prop
=
nameof
(
Prop
));
17
}
18
19
class
Ambiguous
20
{
21
public static int
Main
()
22
{
23
string
res
;
24
res
=
nameof
(
I
.
M
);
25
if
(
res
!=
"M"
)
26
return
1
;
27
28
res
=
nameof
(
I
.
Prop
);
29
if
(
res
!=
"Prop"
)
30
return
2
;
31
32
return
0
;
33
}
34
}