Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / tests / test-anon-126.cs
1 using System;
2 using System.Collections.Generic;
3
4 namespace MonoBugs
5 {
6         public class BrokenGenericCast
7         {               
8                 public static Converter<TSource,TDest> GetUpcaster<TSource, TDest>() where TSource : TDest
9                 {
10                         return delegate(TSource obj) { return obj; };
11                 }
12
13                 public static Converter<TSource, TDest> GetDowncaster<TSource, TDest>() where TDest : TSource
14                 {
15                         return delegate(TSource obj) { return (TDest)obj; };
16                 }
17                 
18                 public static void Main ()
19                 {
20                 }
21         }
22 }
23