After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 575439 - Expanding properties
Expanding properties
Status: RESOLVED DUPLICATE of bug 686542
Product: vala
Classification: Core
Component: Objects
0.7.x
Other All
: Normal enhancement
: ---
Assigned To: Vala maintainers
Vala maintainers
: 696592 (view as bug list)
Depends on:
Blocks: 589311 591695
 
 
Reported: 2009-03-15 15:46 UTC by Maciej (Matthew) Piechotka
Modified: 2017-10-18 00:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maciej (Matthew) Piechotka 2009-03-15 15:46:05 UTC
If a property in parent (class or interface) is:
public abstract Type name {get;}

Subclass should be allowed to define:
public Type name {get; construct;}
Comment 1 Maciej (Matthew) Piechotka 2013-03-25 21:40:37 UTC
*** Bug 696592 has been marked as a duplicate of this bug. ***
Comment 2 Maciej (Matthew) Piechotka 2013-03-25 21:43:34 UTC
Probably Lars's example with get and set is more useful:

>   class MyAction: Object, Action {
> 
>       public string name { get; set; }
>       public bool enabled { get; set; }
> 
>       /* ... */
>   }
> 

From his description it is working sometimes in Vala.
Comment 3 Daniel Espinosa 2017-10-18 00:03:45 UTC

*** This bug has been marked as a duplicate of bug 686542 ***