diff --git a/vlib/v/table/types.v b/vlib/v/table/types.v index ce97f1c1d4..44e9861317 100644 --- a/vlib/v/table/types.v +++ b/vlib/v/table/types.v @@ -431,7 +431,11 @@ pub enum Kind { } pub fn (t &TypeSymbol) str() string { - return t.name.replace('array_', '[]') + if t.kind in [.array, .array_fixed] { + return t.name.replace('array_', '[]') + } else { + return t.name + } } [inline]