[build] Fix warning (#4177)
[mono-project.git] / mcs / tests / gtest-010.cs
blob178f81fc0d3f35d5ec167d79a410db51a0a11ef4
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 public static void Main()