Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

19 lines
391 B
C#

enum Foo { Bar };
class BazAttribute : System.Attribute
{
public BazAttribute () {}
public BazAttribute (Foo foo1) {}
public Foo foo2;
public Foo foo3 { set {} get { return Foo.Bar; } }
};
class Test
{
[Baz (Foo.Bar)] void f0() {}
[Baz ((Foo) 1)] void f1() {}
[Baz (foo2 = (Foo) 2)] void f2() {}
[Baz (foo3 = (Foo) 3)] void f3() {}
public static void Main() { }
}