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
[eglib] In AIX/generic POSIX, handle null addresses better (#17892)
[mono-project.git]
/
mcs
/
tests
/
test-partial-12.cs
blob
bed102e11dacf432f4b81bcd7c96f1fc8bf82285
1
// Compiler options: -langversion:default
2
3
using
System
;
4
5
namespace
Test1
6
{
7
public partial class
Foo
8
{
9
internal static
System
.
Collections
.
IEnumerable
E
()
10
{
11
yield return
"a"
;
12
}
13
}
14
}
15
16
class
X
17
{
18
public static int
Main
()
19
{
20
foreach
(
string
s
in
Test1
.
Foo
.
E
())
21
{
22
Console
.
WriteLine
(
s
);
23
if
(
s
!=
"a"
)
24
return
1
;
25
26
return
0
;
27
}
28
return
2
;
29
}
30
}