class A implements IEnumerable var _list as IList cue init base.init _list = List() _list.add(1) def getEnumerator as IEnumerator return _list.getEnumerator # used to cause a false compilation error def getEnumerator as System.Collections.IEnumerator implements System.Collections.IEnumerable return .getEnumerator class Program def main a = A() for i in a, assert i == 1