Make container.Map have similar semantics to the built-in map type

This commit is contained in:
gingerBill
2020-12-15 23:23:07 +00:00
parent 6c2b93d519
commit 5faa560f82
2 changed files with 52 additions and 37 deletions

View File

@@ -1720,6 +1720,9 @@ TypeTuple *get_record_polymorphic_params(Type *t) {
bool is_type_polymorphic(Type *t, bool or_specialized=false) {
if (t == nullptr) {
return false;
}
if (t->flags & TypeFlag_InProcessOfCheckingPolymorphic) {
return false;
}