From: fennecdjay Date: Wed, 25 Sep 2019 20:40:16 +0000 (+0200) Subject: :art: Add cast for similar types X-Git-Tag: nightly~2199^2~15 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=a2d3986471ce2c5663c9d5c4b0df5f835d69cc56;p=gwion.git :art: Add cast for similar types --- diff --git a/src/parse/scan0.c b/src/parse/scan0.c index efd329b2..eba8f72a 100644 --- a/src/parse/scan0.c +++ b/src/parse/scan0.c @@ -101,6 +101,8 @@ static OP_CHECK(opck_implicit_similar) { ANN static void scan0_implicit_similar(const Env env, const Type lhs, const Type rhs) { struct Op_Import opi = { .op=insert_symbol("@implicit"), .lhs=lhs, .rhs=rhs, .ck=opck_implicit_similar }; add_op(env->gwion, &opi); + opi.op=insert_symbol("@cast"); + add_op(env->gwion, &opi); } ANN static void typedef_simple(const Env env, const Type_Def tdef, const Type base) {