From 5faa560f82eba49a862ee340b3b560a96044f868 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 15 Dec 2020 23:23:07 +0000 Subject: Make `container.Map` have similar semantics to the built-in `map` type --- src/types.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index df87cb645..d79a3337a 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -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; } -- cgit v1.2.3