This is planned to be supported.
https://bugzilla.gnome.org/show_bug.cgi?id=678617
} else if (member is Constant) {
var c = (Constant) member;
access = c.access;
+
+ var block = c.parent_symbol as Block;
+ if (block != null && context.analyzer.find_parent_method_or_property_accessor (block) != context.analyzer.current_method_or_property_accessor) {
+ error = true;
+ Report.error (source_reference, "internal error: accessing local constants of outer methods is not supported yet");
+ return false;
+ }
} else if (member is Method) {
var m = (Method) member;
if (m.is_async_callback) {