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

25 lines
358 B
C#

// CS0612: `E.GetEnumerator()' is obsolete
// Line: 22
// Compiler options: -warnaserror
using System.Collections;
using System;
class E : IEnumerable
{
[Obsolete]
public IEnumerator GetEnumerator ()
{
throw new System.NotImplementedException ();
}
}
class C
{
public static void Main ()
{
var e = new E ();
foreach (var entry in e) {
}
}
}