From 6a85546b761b67fa012a2cd49e32b2211bf02971 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 14 Feb 2018 21:46:39 +0000 Subject: Fix #187 --- src/types.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/types.cpp') diff --git a/src/types.cpp b/src/types.cpp index c40c076f1..2dcd05361 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -954,6 +954,14 @@ bool is_type_polymorphic_struct_specialized(Type *t) { return false; } +bool is_type_polymorphic_struct_unspecialized(Type *t) { + t = base_type(t); + if (t->kind == Type_Struct) { + return t->Struct.is_polymorphic && !t->Struct.is_poly_specialized; + } + return false; +} + bool is_type_polymorphic(Type *t) { switch (t->kind) { -- cgit v1.2.3