Add error message for non-constant polymorphic name parameters

This commit is contained in:
gingerBill
2019-08-03 10:15:31 +01:00
parent 132fdf14b8
commit 5877017d30
+1
View File
@@ -1622,6 +1622,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is
if (op.mode == Addressing_Constant) {
poly_const = op.value;
} else {
error(op.expr, "Expected a constant value for this polymorphic name parameter");
success = false;
}
}