From 615c1cd81e5d9ed50d6965dcd48da9b4eee6bed5 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Fri, 20 Aug 2010 18:02:14 +0200 Subject: [PATCH] Report error on invalid using directives Fixes bug 626103. --- vala/valasymbolresolver.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2