Menu

#11 Attributes are not documented properly

open-later
nobody
Core (23)
1
2010-03-29
2008-11-16
No

If I copy and paste a definition of a class with DefaultMemberAttribute from the documentation, it produces an compiler error.
The reason is, all parameters of the attribute are listed as named one. In the example of DefaultMember there is no named parameter, only one positional from the only available constructor.

Another example is the TestAttribute in the test suite.

Discussion

  • Xharze

    Xharze - 2008-12-21
    • labels: --> Core
    • priority: 5 --> 1
     
  • Xharze

    Xharze - 2008-12-21

    It don't know how we can fix this, as we have no way of knowing the order of the parameters in the constructor. I know it wouldn't be a problem in the described case, but it would if the constructor took two strings as parameters.

     
  • Xharze

    Xharze - 2010-03-29
    • status: open --> open-accepted
     
  • Xharze

    Xharze - 2010-03-29
    • status: open-accepted --> open-later
     

Log in to post a comment.