History

Add tests for parametric polymorphism. Update debugger to show parametric type as '*'. - e.g. reverse(list of *):list of *

arr committed 9 years ago

Commit 3098fb81 parent e5f12523 files · +41 −5Browse files

Showing the changes to src/asm/sbl_reader.cpp (1 of 3 files). Show all

Unified · Split

src/asm/sbl_reader.cpp+1−4
@@ -599,10 +599,7 @@ namespace · 598 unmodified lines
599 case type_class_t::integer: return "int";599 case type_class_t::integer: return "int";
600 case type_class_t::real: return "real";600 case type_class_t::real: return "real";
601 case type_class_t::string: return "string";601 case type_class_t::string: return "string";
602 602 case type_class_t::poly: return "*";
603 case type_class_t::poly:
604 assert(false && "Not fully implemented");
605 return "poly<T>";
606 603
607 case type_class_t::array:604 case type_class_t::array:
608 return "array of " + to_string(tt.resolve_table_index<type_t>(t.value_index_1), tt);605 return "array of " + to_string(tt.resolve_table_index<type_t>(t.value_index_1), tt);