From: Aaron Andersen Date: Fri, 20 Aug 2010 16:02:14 +0000 (+0200) Subject: Report error on invalid using directives X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=615c1cd81e5d9ed50d6965dcd48da9b4eee6bed5;p=thirdparty%2Fvala.git Report error on invalid using directives Fixes bug 626103. --- diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala index 6483541de..026d6ea26 100644 --- a/vala/valasymbolresolver.vala +++ b/vala/valasymbolresolver.vala @@ -215,7 +215,7 @@ public class Vala.SymbolResolver : CodeVisitor { var unresolved_symbol = ns.namespace_symbol as UnresolvedSymbol; if (unresolved_symbol != null) { ns.namespace_symbol = resolve_symbol (unresolved_symbol); - if (ns.namespace_symbol == null) { + if (!(ns.namespace_symbol is Namespace)) { ns.error = true; Report.error (ns.source_reference, "The namespace name `%s' could not be found".printf (unresolved_symbol.to_string ())); return;