Missing warning/error
If you have a parent class which has a private constructor and from the child you call 'base()' it causes the build to fail since 'base()' cannot access the constructor of the parent from the child.
In short I think it would be nice to add a warning/error for that.
foo.vala
public abstract class Foo {
int foo = 0;
Foo (int foo) {
this.foo = foo;
}
}
bar.vala:
public class Bar : Foo {
public Bar () {
base (10);
}
}
void main () {
}
$ valac foo.vala bar.vala
...
/usr/bin/ld: /tmp/ccBaG0wk.o: in function `bar_construct':
bar.vala.c:(.text+0x25): undefined reference to `foo_construct'
collect2: error: ld returned 1 exit status
Edited by Rico Tzschichholz