From: fennecdjay Date: Thu, 10 Oct 2019 13:40:59 +0000 (+0200) Subject: :art: Test get_type_name X-Git-Tag: nightly~2198^2~21 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=01a43c4e4503fd56c302498fbc9f81d91f22d467;p=gwion.git :art: Test get_type_name --- 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 >>>;