slicing now returns correct const-ness

also remove the ability to override constness when slicing

closes #334
This commit is contained in:
Andrew Kelley
2017-04-22 12:19:20 -04:00
parent 1a0081b763
commit aafb0b9082
8 changed files with 44 additions and 29 deletions

View File

@@ -894,8 +894,6 @@ static void render_node_extra(AstRender *ar, AstNode *node, bool grouped) {
if (node->data.slice_expr.end)
render_node_grouped(ar, node->data.slice_expr.end);
fprintf(ar->f, "]");
if (node->data.slice_expr.is_const)
fprintf(ar->f, "const");
break;
}
case NodeTypeUnwrapErrorExpr: