a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
25 lines
358 B
C#
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) {
|
|
}
|
|
}
|
|
} |