Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

28 lines
351 B
C#

using System;
using System.Collections;
using System.Collections.Generic;
public class Foo<T>
{
public IEnumerator<T> getEnumerator (int arg)
{
if (arg == 1) {
int foo = arg;
Console.WriteLine (foo);
}
if (arg == 2) {
int foo = arg;
Console.WriteLine (foo);
}
yield break;
}
}
class X
{
public static void Main ()
{ }
}