From 5877017d30999388c832f6467116336733b607e2 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 3 Aug 2019 10:15:31 +0100 Subject: Add error message for non-constant polymorphic name parameters --- src/check_type.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/check_type.cpp') diff --git a/src/check_type.cpp b/src/check_type.cpp index bcf0ed71c..36d8cf0f8 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -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; } } -- cgit v1.2.3