Update package reflect

This commit is contained in:
gingerBill
2020-09-26 23:51:42 +01:00
parent b9076b0d5b
commit e26f63b448
2 changed files with 181 additions and 6 deletions
+1 -1
View File
@@ -1811,7 +1811,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
}
if info.maybe && len(info.variants) == 1 && reflect.is_pointer(info.variants[0]) {
if reflect.type_info_union_is_pure_maybe(info) {
if v.data == nil {
strings.write_string(fi.buf, "nil");
} else {