2004-12-25 Ben Maurer <bmaurer@ximian.com>
[mono-project.git] / mcs / tests / test-272.cs
blobea06b69faa2a824f1a29eab72e1e9fd26e8b4944
1 enum Foo { Bar };
3 class BazAttribute : System.Attribute
5 public BazAttribute () {}
6 public BazAttribute (Foo foo1) {}
7 public Foo foo2;
8 public Foo foo3 { set {} get { return Foo.Bar; } }
9 };
11 class Test
13 [Baz (Foo.Bar)] void f0() {}
14 [Baz ((Foo) 1)] void f1() {}
15 [Baz (foo2 = (Foo) 2)] void f2() {}
16 [Baz (foo3 = (Foo) 3)] void f3() {}
17 static void Main() { }