mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
formatting
This commit is contained in:
+4
-6
@@ -7947,12 +7947,10 @@ 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){
|
if (v->type != nullptr && v->type->kind != Type_Generic) {
|
||||||
if (v->type->kind != Type_Generic) {
|
s = gb_string_append_fmt(s, "=");
|
||||||
s = gb_string_append_fmt(s, "=");
|
s = write_type_to_string(s, v->type, false);
|
||||||
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