using System; using System.Collections.Generic; namespace MonoBugs { public class BrokenGenericCast { public static Converter GetUpcaster() where TSource : TDest { return delegate(TSource obj) { return obj; }; } public static Converter GetDowncaster() where TDest : TSource { return delegate(TSource obj) { return (TDest)obj; }; } public static void Main () { } } }