[mcs] C#7 throw expression
[mono.git] / mcs / tests / gtest-060.cs
1 using System;
2
3 interface IFoo
4 {
5         MyList<U> Map<U> ();
6 }
7
8 class MyList<T>
9 {
10         public void Hello (T t)
11         {
12                 Console.WriteLine (t);
13         }
14 }
15
16 class Foo : IFoo
17 {
18         public MyList<T> Map<T> ()
19         {
20                 return new MyList<T> ();
21         }
22 }
23
24 class X
25 {
26         public static void Main ()
27         {
28                 Foo foo = new Foo ();
29                 MyList<int> list = foo.Map<int> ();
30                 list.Hello (9);
31         }
32 }