Commit 3870e7a5 by Ian Lance Taylor

Add statements to type switch even if there are no valid types.

From-SVN: r167874
parent 89ca9e60
......@@ -3982,6 +3982,8 @@ Parse::type_case_clause(Named_object* switch_no, Type_case_clauses* clauses)
clauses->add(*p, true, false, NULL, location);
clauses->add(types.back(), false, false, statements, location);
}
else
clauses->add(Type::make_error_type(), false, false, statements, location);
}
// TypeSwitchCase = "case" type | "default"
......
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