1 2 3 4 5 6 7 8 9
class C(a: Any) extends annotation.StaticAnnotation @C({val x = 0; x}) trait T { class X @C({val x = 0; x}) def foo = 42 }