a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
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 ()
|
|
{ }
|
|
}
|