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
599599 case type_class_t::integer: return "int";
600600 case type_class_t::real: return "real";
601601 case type_class_t::string: return "string";
602−
603− case type_class_t::poly:
604− assert(false && "Not fully implemented");
605− return "poly<T>";
602+ case type_class_t::poly: return "*";
606603
607604 case type_class_t::array:
608605 return "array of " + to_string(tt.resolve_table_index<type_t>(t.value_index_1), tt);