a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
265 B
C#
17 lines
265 B
C#
// CS01621: The yield statement cannot be used inside anonymous method blocks
|
|
// Line: 13
|
|
|
|
using System.Collections;
|
|
|
|
delegate object D ();
|
|
|
|
class C: IEnumerable
|
|
{
|
|
public IEnumerator GetEnumerator ()
|
|
{
|
|
D d = delegate {
|
|
yield return this;
|
|
};
|
|
}
|
|
}
|