| ... | @@ -166,6 +166,11 @@ pub fn formatType( | ... | @@ -166,6 +166,11 @@ pub fn formatType( |
| 166 | | 166 | |
| 167 | if (has_cust_fmt) return value.format(fmt, context, Errors, output); | 167 | if (has_cust_fmt) return value.format(fmt, context, Errors, output); |
| 168 | try output(context, @typeName(T)); | 168 | try output(context, @typeName(T)); |
| | 169 | if (comptime @typeId(T) == builtin.TypeId.Enum) { |
| | 170 | try output(context, "."); |
| | 171 | try formatType(@tagName(value), "", context, Errors, output); |
| | 172 | return; |
| | 173 | } |
| 169 | comptime var field_i = 0; | 174 | comptime var field_i = 0; |
| 170 | inline while (field_i < @memberCount(T)) : (field_i += 1) { | 175 | inline while (field_i < @memberCount(T)) : (field_i += 1) { |
| 171 | if (field_i == 0) { | 176 | if (field_i == 0) { |