[Vala] Abstract properties in Concrete Class
- From: tecywiz121 <tecywiz121 hotmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] Abstract properties in Concrete Class
- Date: Wed, 09 Jun 2010 22:25:37 -0400
Hello again,
This is the second snippet I was curious about.
Basically, valac should not allow the following code to compile since
IMHO, its completely wrong.
Just checking whether I should file a bug report or not.
------------------------------------
public class TestClass
{
public abstract bool test_prop { get; set; }
}
public static int main(string[] args)
{
TestClass tc = new TestClass();
bool test = tc.test_prop;
stdout.printf("%s\n", test ? "TRUE" : "FALSE");
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]