I am relatively new to Vala , and I am trying to port some C # code to vala manually, and I started with a trivial example to test it.
C # codes recognize the snippet below as a mapping 1-1 to C #.
Here is the test file vala Universe.vala:
namespace Universe
{
public interface Planet
{
string Name { get; }
}
}
I get a compilation error:
Universe.vala: error: getter property must have body
Vala doesn't seem to support get (set) ter properties in interfaces - or am I missing something ?. How to fix it?
source
share