# .error. Use "yield" instead class Test def main is shared pass def foo as IEnumerable yield return 1 # C#ism