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

36 lines
415 B
C#

using System.Linq;
using System.Collections;
using System.Collections.Generic;
class Test : IEnumerable<int>
{
public int First {
get {
return 1;
}
}
IEnumerator IEnumerable.GetEnumerator ()
{
return null;
}
public IEnumerator<int> GetEnumerator ()
{
return null;
}
}
class C
{
public void Test ()
{
var t = new Test ();
var v = t.First ();
}
public static void Main ()
{
}
}