BOO-999
[boo.git] / tests / testcases / errors / BCE0153-1.boo
blob8097d6b74d0e8c3bd6f06f1009d1861f730b9049
1 """
2 BCE0153-1.boo(13,6): BCE0153: 'System.AttributeUsageAttribute' can be applied on one of these targets only : Class.
3 BCE0153-1.boo(7,2): BCE0153: 'System.AttributeUsageAttribute' can be applied on one of these targets only : Class.
4 """
5 import System
7 [AttributeUsage(AttributeTargets.Method)]
8 def TestAttributeUsageCanOnlyBeAppliedToClass():
9 pass
11 [AttributeUsage(AttributeTargets.Method)]
12 class Test:
13 [AttributeUsage(AttributeTargets.Method)]
14 [getter(MyProp)]
15 _myProp = 0