# .compile-only. class Values inherits Dictionary cue init(values as Dictionary) base.init for key in values.keys this[key] = values[key] interface IProcessor def process(i as int) class Processors where T must be IProcessor implements IEnumerable # inherit using a generic parameter var _procs as List def process for proc in this # former bug: for loop does not respect generic parameter constraints proc.process(1) def getEnumerator as IEnumerator return nil to passthrough def getEnumerator as System.Collections.IEnumerator implements System.Collections.IEnumerable return .getEnumerator class Program def main is shared pass