linux-packaging-mono/mcs/tests/test-partial-12.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

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;
}
}