| ... | ... | @@ -166,6 +166,11 @@ pub fn formatType( |
| 166 | 166 | |
| 167 | 167 | if (has_cust_fmt) return value.format(fmt, context, Errors, output); |
| 168 | 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 | 174 | comptime var field_i = 0; |
| 170 | 175 | inline while (field_i < @memberCount(T)) : (field_i += 1) { |
| 171 | 176 | if (field_i == 0) { |