From a2d3986471ce2c5663c9d5c4b0df5f835d69cc56 Mon Sep 17 00:00:00 2001
From: fennecdjay <astor.jeremie@wanadoo.fr>
Date: Wed, 25 Sep 2019 22:40:16 +0200
Subject: [PATCH] :art: Add cast for similar types

---
 src/parse/scan0.c | 2 ++
 1 file changed, 2 insertions(+)

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) {
-- 
2.43.0