2008-04-07 Juerg Billeter <j@bitron.ch>
* vala/parser.y: change syntax for defining default values of
properties, fixes bug 526550
* tests/classes-properties.vala: test default values for properties
svn path=/trunk/; revision=1183
2008-04-07 Jürg Billeter <j@bitron.ch>
+ * vala/parser.y: change syntax for defining default values of
+ properties, fixes bug 526550
+
+ * tests/classes-properties.vala: test default values for properties
+
+2008-04-07 Jürg Billeter <j@bitron.ch>
+
* vala/valacodenode.vala, gobject/valaccodegenerator.vala: improve
error reporting for non reference-counted object instances,
fixes bug 471053
}
class Maman.Bar : Foo {
- private int _public_property = 3;
- public int public_property {
- get {
- return _public_property;
- }
- set {
- _public_property = value;
- }
- }
-
+ public int public_property { get; set; default = 3; }
+
void do_action () {
stdout.printf (" %d %d", public_base_property, public_property);
public_base_property = 4;
{
$$ = $3;
}
+ | DEFAULT ASSIGN expression SEMICOLON
+ {
+ $$ = $3;
+ }
;
signal_declaration