From a9d0124b5d6e75df708497fc288d602bb2585369 Mon Sep 17 00:00:00 2001 From: Jason Beetham Date: Fri, 17 Mar 2023 03:17:08 -0600 Subject: [PATCH] Made generic type classes work with types using static parameters (#21528) --- compiler/semtypinst.nim | 27 +++++++++++++++--- tests/metatype/tstatic_generic_typeclass.nim | 30 ++++++++++++++++++++ 2 files changed, 53 insertions(+), 4 deletions(-) create mode 100644 tests/metatype/tstatic_generic_typeclass.nim diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim index 0a0ac17042..0ef1d0898f 100644 --- a/compiler/semtypinst.nim +++ b/compiler/semtypinst.nim @@ -193,6 +193,24 @@ proc replaceObjBranches(cl: TReplTypeVars, n: PNode): PNode = for i in 0..