Take stars out of types where they make more sense.
[mono-project.git] / mcs / tests / test-anon-126.cs
blobc460f434d74082b8eaaa5b20722e36154e417233
1 using System;
2 using System.Collections.Generic;
4 namespace MonoBugs
6 public class BrokenGenericCast
7 {
8 public static Converter<TSource,TDest> GetUpcaster<TSource, TDest>() where TSource : TDest
10 return delegate(TSource obj) { return obj; };
13 public static Converter<TSource, TDest> GetDowncaster<TSource, TDest>() where TDest : TSource
15 return delegate(TSource obj) { return (TDest)obj; };
18 public static void Main ()