a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
31 lines
379 B
C#
31 lines
379 B
C#
// Compiler options: -langversion:default
|
|
|
|
using System;
|
|
|
|
namespace Test1
|
|
{
|
|
public partial class Foo
|
|
{
|
|
internal static System.Collections.IEnumerable E ()
|
|
{
|
|
yield return "a";
|
|
}
|
|
}
|
|
}
|
|
|
|
class X
|
|
{
|
|
public static int Main ()
|
|
{
|
|
foreach (string s in Test1.Foo.E())
|
|
{
|
|
Console.WriteLine (s);
|
|
if (s != "a")
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
return 2;
|
|
}
|
|
}
|