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

38 lines
459 B
C#

using System;
using MSG = System.Collections.Generic;
public class HashSet<T>
{
long value;
public HashSet (long value)
{
this.value = value;
}
public long Test ()
{
return value;
}
public MSG.IEnumerator<long> GetEnumerator()
{
yield return Test ();
}
}
class X
{
public static int Main ()
{
HashSet<int> hb = new HashSet<int> (12345678);
foreach (long value in hb) {
if (value != 12345678)
return 1;
}
return 0;
}
}