mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Add error message for non-constant polymorphic name parameters
This commit is contained in:
@@ -1622,6 +1622,7 @@ Type *check_get_params(CheckerContext *ctx, Scope *scope, Ast *_params, bool *is
|
|||||||
if (op.mode == Addressing_Constant) {
|
if (op.mode == Addressing_Constant) {
|
||||||
poly_const = op.value;
|
poly_const = op.value;
|
||||||
} else {
|
} else {
|
||||||
|
error(op.expr, "Expected a constant value for this polymorphic name parameter");
|
||||||
success = false;
|
success = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user