[decompiler] small fixes for methods and more reference tests (#419)

* clean up method stuff, fix a few small bugs, and add references for easy -h files

* more small fixes and reference tests
This commit is contained in:
water111
2021-05-06 00:42:49 -04:00
committed by GitHub
parent 0a6602e320
commit 21fefa0aaa
41 changed files with 3427 additions and 220 deletions
+1 -1
View File
@@ -783,7 +783,7 @@ void TypeSystem::add_builtin_types() {
add_field_to_type(basic_type, "type", make_typespec("type"));
// the default new basic doesn't support dynamic sizing. anything dynamic will override this
// and then call (method object new) to do the dynamically-sized allocation.
add_method(basic_type, "new", make_function_typespec({"symbol", "type"}, "basic"));
add_method(basic_type, "new", make_function_typespec({"symbol", "type"}, "_type_"));
// SYMBOL
builtin_structure_inherit(symbol_type);