proc at type lvl seg fault
This commit is contained in:
1 parent
3bbf3641a1
commit
5161731ce0
1 file changed
+6
-4
+6
-4
@@ -7947,10 +7947,12 @@ gb_internal CallArgumentError check_polymorphic_record_type(CheckerContext *c, O
|
|||||||
s = gb_string_append_fmt(s, "$%.*s", LIT(name));
|
s = gb_string_append_fmt(s, "$%.*s", LIT(name));
|
||||||
|
|
||||||
if (v->kind == Entity_TypeName) {
|
if (v->kind == Entity_TypeName) {
|
||||||
if (v->type->kind != Type_Generic) {
|
if(v->type){
|
||||||
s = gb_string_append_fmt(s, "=");
|
if (v->type->kind != Type_Generic) {
|
||||||
s = write_type_to_string(s, v->type, false);
|
s = gb_string_append_fmt(s, "=");
|
||||||
}
|
s = write_type_to_string(s, v->type, false);
|
||||||
|
}
|
||||||
|
};
|
||||||
} else if (v->kind == Entity_Constant) {
|
} else if (v->kind == Entity_Constant) {
|
||||||
if (v->Constant.value.kind != ExactValue_Invalid) {
|
if (v->Constant.value.kind != ExactValue_Invalid) {
|
||||||
s = gb_string_append_fmt(s, "=");
|
s = gb_string_append_fmt(s, "=");
|
||||||
|
|||||||
Reference in new issue
Block a user