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

30 lines
444 B
C#

//
// This is another "important" test: it checks whether we set
// TypeContainer.CurrentType correctly when compiling the
// declaration of `Stack'.
//
class Stack<T>
{
//
// This must be encoded as a TypeSpec (Stack<!0>) and
// not as a TypeDef.
//
// PEVerify the resulting executable on Windows to make sure !
//
void Hello (Stack<T> stack)
{
}
void Test ()
{
Hello (this);
}
}
class X
{
public static void Main ()
{ }
}