Commit 516e73a9 authored by Florian Brosch's avatar Florian Brosch

Check left parameter of is

parent 39d76db5
......@@ -104,6 +104,12 @@ public class Vala.TypeCheck : Expression {
type_reference.check (context);
if (expression.value_type == null) {
Report.error (expression.source_reference, "invalid left operand");
error = true;
return false;
}
if (type_reference.data_type == null) {
/* if type resolving didn't succeed, skip this check */
error = true;
......
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