From 74e1a2a34a7197b545725e8215639930ca107ec8 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Tue, 21 May 2019 00:25:48 +0200 Subject: [PATCH] :art: Fix test --- src/parse/check.c | 2 +- tests/error/vector_too_big.gw | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parse/check.c b/src/parse/check.c index f6c07bd2..0c57604e 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -257,7 +257,7 @@ ANN static Type prim_vec(const Env env, const Exp_Primary* primary) { struct VecInfo info = { .n=vec->dim }; vec_info(t, &info); if(vec->dim > info.n) - ERR_O(vec->exp->pos, "extraneous component of %s value...", info.t->name) + ERR_O(vec->exp->pos, "extraneous component of %s value...", info.s) CHECK_BO(vec_value(env, vec->exp, info.s)) return info.t; } diff --git a/tests/error/vector_too_big.gw b/tests/error/vector_too_big.gw index 0a30a0fc..639b0f91 100644 --- a/tests/error/vector_too_big.gw +++ b/tests/error/vector_too_big.gw @@ -1,2 +1,2 @@ -// [contains] extraneous component of vector value +// [contains] extraneous component of @(0,0,0,0,0); -- 2.43.0