Commit 750dd8db authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

fix warnings on invalid code

2007-08-29  Juerg Billeter  <j@bitron.ch>

	* vala/valasymbolresolver.vala: fix warnings on invalid code

svn path=/trunk/; revision=525
parent 49a03bda
2007-08-29 Jürg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: fix warnings on invalid code
2007-08-29 Jürg Billeter <j@bitron.ch>
* gobject/valadbusbindingprovider.vala: fix warnings on invalid code
......
......@@ -216,8 +216,11 @@ public class Vala.SymbolResolver : CodeVisitor {
}
if (sym is TypeParameter) {
type.type_parameter = (TypeParameter) sym;
} else {
} else if (sym is DataType) {
type.data_type = (DataType) sym;
} else {
Report.error (type.source_reference, "`%s' is not a type".printf (sym.get_full_name ()));
return;
}
} else {
var ns_symbol = root_symbol.scope.lookup (type.namespace_name);
......@@ -232,7 +235,12 @@ public class Vala.SymbolResolver : CodeVisitor {
Report.error (type.source_reference, "The type name `%s' does not exist in the namespace `%s'".printf (type.type_name, type.namespace_name));
return;
}
type.data_type = (DataType) sym;
if (sym is DataType) {
type.data_type = (DataType) sym;
} else {
Report.error (type.source_reference, "`%s' is not a type".printf (sym.get_full_name ()));
return;
}
}
if (type.pointer_level > 0) {
......
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