aboutsummaryrefslogtreecommitdiff
path: root/src/check_type.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-08-03 10:15:31 +0100
committergingerBill <bill@gingerbill.org>2019-08-03 10:15:31 +0100
commit5877017d30999388c832f6467116336733b607e2 (patch)
treeb002f486e8e66619e8c05c650140e27c612a80ad /src/check_type.cpp
parent132fdf14b8c9dd717aea6ced64641030dd8adb47 (diff)
Add error message for non-constant polymorphic name parameters
Diffstat (limited to 'src/check_type.cpp')
-rw-r--r--src/check_type.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
}