From 01a43c4e4503fd56c302498fbc9f81d91f22d467 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 10 Oct 2019 15:40:59 +0200 Subject: [PATCH] :art: Test get_type_name --- include/match.h | 3 --- tests/tree/get_type_name_test.gw | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/tree/get_type_name_test.gw diff --git a/include/match.h b/include/match.h index fed283bc..5b1d4b9b 100644 --- a/include/match.h +++ b/include/match.h @@ -22,9 +22,6 @@ ANN static inline void match_unmap(struct Match_ * const match) { for(m_uint i = 0; i < sz; ++i) { const Exp e = (Exp)VKEY(map, i), next = (i < (sz-2)) ? (Exp)VKEY(map, i + 1) : NULL; - if(!e) - continue; - VKEY(map, i) = VKEY(map, i+1) = 0;// e->next = next; } map_release(map); diff --git a/tests/tree/get_type_name_test.gw b/tests/tree/get_type_name_test.gw new file mode 100644 index 00000000..c75884ac --- /dev/null +++ b/tests/tree/get_type_name_test.gw @@ -0,0 +1,4 @@ +class <~A, B~> C{} +class <~A~> D {} +<~ <~int~>D, <~int~>D ~>C c; +<<< c >>>; -- 2.43.0