Commit 0afb1af8 authored by Luca Bruno's avatar Luca Bruno

Check accessibility of type arguments

parent d25a6006
......@@ -392,6 +392,11 @@ public abstract class Vala.DataType : CodeNode {
// check whether this type is at least as accessible as the specified symbol
public virtual bool is_accessible (Symbol sym) {
foreach (var type_arg in get_type_arguments ()) {
if (!type_arg.is_accessible (sym)) {
return false;
}
}
if (data_type != null) {
return data_type.is_accessible (sym);
}
......
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