decomp/goalc: support object references in static data

This commit is contained in:
Tyler Wilding
2022-09-25 21:20:13 -04:00
parent 5c7a3384e5
commit a41f616ff8
4 changed files with 35 additions and 11 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ void Compiler::compile_static_structure_inline(const goos::Object& form,
}
} else if (is_structure(field_info.type) || is_pair(field_info.type) ||
is_symbol(field_info.type)) {
is_symbol(field_info.type) || field_info.type == TypeSpec("object")) {
if (is_pair(field_info.type)) {
ASSERT(!field_info.field.is_inline());
}