summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2010-08-20 18:02:14 +0200
committerJürg Billeter <j@bitron.ch>2010-09-18 01:00:13 +0200
commit615c1cd81e5d9ed50d6965dcd48da9b4eee6bed5 (patch)
tree1249a033f6d5909d6eaed8625d284c7c3b9e1c1e
parent8a22d9b783a73a56c877a0402781f0af65f42d75 (diff)
downloadvala-615c1cd81e5d9ed50d6965dcd48da9b4eee6bed5.tar.gz
Report error on invalid using directives
Fixes bug 626103.
-rw-r--r--vala/valasymbolresolver.vala2
1 files changed, 1 insertions, 1 deletions
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;