In class/Microsoft.Build.Tasks:
[mcs.git] / tests / gtest-036.cs
blob1cf8e8b0e3fc441a36e2c8c1f869af62b952606e
1 //
2 // This is another "important" test: it checks whether we set
3 // TypeContainer.CurrentType correctly when compiling the
4 // declaration of `Stack'.
5 //
7 class Stack<T>
9 //
10 // This must be encoded as a TypeSpec (Stack<!0>) and
11 // not as a TypeDef.
13 // PEVerify the resulting executable on Windows to make sure !
15 void Hello (Stack<T> stack)
19 void Test ()
21 Hello (this);
25 class X
27 static void Main ()
28 { }