2010-02-19 Rodrigo Kumpera <rkumpera@novell.com>
[mcs.git] / tests / gtest-010.cs
blob26b88153a5153eac5eaade8e69331921f2462e66
1 // Type parameters with constraints: check whether we can invoke
2 // things on the constrained type.
4 using System;
6 interface I
8 void Hello ();
11 class J
13 public void Foo ()
15 Console.WriteLine ("Foo!");
19 class Stack<T>
20 where T : J, I
22 public void Test (T t)
24 t.Hello ();
25 t.Foo ();
29 class Test
33 class X
35 static void Main()