2003-09-19 Martin Baulig <martin@ximian.com>
[mono.git] / mcs / tests / gen-10.cs
1 using System;
2
3 interface I
4 {
5         void Hello ();
6 }
7
8 class J
9 {
10         public void Foo ()
11         {
12                 Console.WriteLine ("Foo!");
13         }
14 }
15
16 class Stack<T>
17         where T : J, I
18 {
19         T t;
20
21         public void Test ()
22         {
23                 t.Hello ();
24                 t.Foo ();
25         }
26 }
27
28 class Test
29 {
30 }
31
32 class X
33 {
34         static void Main()
35         {
36         }
37 }