protected members of a class cannot be accessed by a Mixin that requires/depends on that class
Submitted by jmc..@..om.com
Link to original bug (#673390)
Description
Mixins cannot use protected members from the classes that are declared as requirements for that Mixin.. That makes Mixins very limited or forces classes to declare public properties that were only to be used by Mixins in order to provide some functionality
class TestClass {
protected int property { public get; protected set; }
}
interface TestMixin : TestClass {
public int double() {
return 2 * property;
}
}
test-protected-properties-mixin.vala:10.20-10.27: error: Access to protected member `TestClass.property' denied return 2 * property;
Version: 0.16.x