GNOME Bugzilla – Bug 792254
Vala compiler should detect wrong compact classes declarations
Last modified: 2018-03-27 10:35:28 UTC
Documentation is clear about how to use Compact Classes, so compiler should detect and rise errors for common wrong uses: a) Report an error on abstract compact classes declaration (#741465) b) Report an error on trying to declare a virtual/abstract methods (#659278, #741465) c) Report an error on trying to declare automatic properties declaration (#607568) This bug report closes bug #741465.
Automatic properties, are allowed but they provide a body and use public fields in the compact class. Internal fields with references are allowed see: https://bugzilla.gnome.org/show_bug.cgi?id=607568#c6 So all these should be documented in a section for compact classes and producing C API for libraries.
@daniel: Are you going to work on that?
Afaics the mentioned problems are taken care of, so this can be closed.