Fix bug #566087.
[mcs.git] / tests / test-219.cs
blob90112f5c33576b326f29a9d6a55b71f77ff4b737
1 using System;
3 public class TestAttribute : Attribute {
4 Type type;
6 public TestAttribute(Type type)
8 this.type = type;
11 public Type Type
13 get { return type; }
17 [TestAttribute(typeof(void))]
18 public class Test {
19 public static void Main()
21 object[] attrs =
22 typeof(Test).GetCustomAttributes(typeof(TestAttribute), false);
23 foreach (TestAttribute attr in attrs) {
24 Console.WriteLine("TestAttribute({0})", attr.Type);