From 71ae930e5e121f4ee3559c43d7c14bc700ea0df2 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Fri, 16 Nov 2007 15:56:24 +0000 Subject: [PATCH] remove invalid property definitions 2007-11-16 Juerg Billeter * tests/property-sample.vala: remove invalid property definitions svn path=/trunk/; revision=688 --- ChangeLog | 4 ++++ tests/property-sample.vala | 11 +---------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index b96f3a7..64c17e2 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 f724929..5579995 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); -- 2.7.4