Commit 9c130ffe authored by Rico Tzschichholz's avatar Rico Tzschichholz

vala: Parser doesn't ensure "protected" to be applied on TypeSymbol members

Probably ObjectTypeSymbol should be enforced.
parent 702c478e
......@@ -711,7 +711,7 @@ public class Vala.MemberAccess : Expression {
member.used = true;
member.version.check (source_reference);
if (access == SymbolAccessibility.PROTECTED) {
if (access == SymbolAccessibility.PROTECTED && member.parent_symbol is TypeSymbol) {
var target_type = (TypeSymbol) member.parent_symbol;
bool in_subtype = false;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment