From: Juerg Billeter Date: Fri, 16 Nov 2007 15:56:24 +0000 (+0000) Subject: remove invalid property definitions X-Git-Tag: VALA_0_1_5~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ae930e5e121f4ee3559c43d7c14bc700ea0df2;p=thirdparty%2Fvala.git remove invalid property definitions 2007-11-16 Juerg Billeter * tests/property-sample.vala: remove invalid property definitions svn path=/trunk/; revision=688 --- diff --git a/ChangeLog b/ChangeLog index b96f3a728..64c17e205 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-11-16 Jürg Billeter + + * tests/property-sample.vala: remove invalid property definitions + 2007-11-13 Jürg Billeter * vapi/packages/gconf-2.0/: update to use vala-gen-introspect diff --git a/tests/property-sample.vala b/tests/property-sample.vala index f72492969..557999524 100644 --- a/tests/property-sample.vala +++ b/tests/property-sample.vala @@ -20,13 +20,7 @@ public class Sample : Object { private string _read_only; public string read_only { - get; - } - - private string _ignore_callee; - public string ignore_callee { - get; - set {} + get { return _read_only; } } public Sample(construct string! name) { @@ -35,7 +29,6 @@ public class Sample : Object { construct { _automatic = "InitialAutomatic"; _read_only = "InitialReadOnly"; - _ignore_callee = "InitialIgnoreCallee"; } public void run() { @@ -55,8 +48,6 @@ public class Sample : Object { // The following statement would be rejected // read_only = "TheNewReadOnly"; - ignore_callee = "TheNewIgnoreCallee"; - stdout.printf("automatic: %s\n", automatic); stdout.printf("name: %s\n", name); stdout.printf("read_only: %s\n", read_only);