30 lines
444 B
C#
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 ()
|
||
|
{ }
|
||
|
}
|