diff --git a/vlib/v/table/atype_symbols.v b/vlib/v/table/atype_symbols.v index c7858b724a..cbb866e7f1 100644 --- a/vlib/v/table/atype_symbols.v +++ b/vlib/v/table/atype_symbols.v @@ -89,6 +89,10 @@ pub enum Kind { enum_ } +pub fn (t &TypeSymbol) str() string { + return t.name.replace('array_', '[]') +} + [inline] pub fn (t &TypeSymbol) enum_info() Enum { match t.info { @@ -155,6 +159,7 @@ pub fn (t TypeSymbol) str() string { } */ + pub fn (t mut Table) register_builtin_type_symbols() { // reserve index 0 so nothing can go there // save index check, 0 will mean not found