Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

17 lines
247 B
C#

// We may use type parameters as `params' type.
class Stack<T>
{
public void Hello (int a, params T[] args)
{ }
}
class X
{
public static void Main ()
{
Stack<string> stack = new Stack<string> ();
stack.Hello (1, "Hello", "World");
}
}