From 284b95d9b3449b770c3fd7a77086242e95520d6b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 11 Oct 2019 16:05:29 +0200 Subject: [PATCH] :art: Fix get_type_name --- src/oo/type.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/oo/type.c b/src/oo/type.c index d5f6503e..cb7309df 100644 --- a/src/oo/type.c +++ b/src/oo/type.c @@ -171,6 +171,8 @@ ANN m_str get_type_name(const Env env, const m_str s, const m_uint index) { ++name; while(*name++) { if(*name == '<') { + if(n == index) + c[i++] = *name; lvl++; name++; } else if(*name == '~' && !lvl--) -- 2.43.0