From 8bb9823fde2b144a6d3a5b4a2d9f6ffb59c8de25 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 9 Jun 2024 08:16:05 +0200 Subject: [PATCH] fixes #23445; fixes #23418 [backport] (#23699) (cherry picked from commit 56c95758b2777a36c8608a7b9950ba5ce8ce0b65) --- compiler/seminst.nim | 3 +++ compiler/types.nim | 10 +++++++++- tests/metatype/twrong_same_type.nim | 28 ++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 tests/metatype/twrong_same_type.nim diff --git a/compiler/seminst.nim b/compiler/seminst.nim index 0b7ce06106..c13929dc26 100644 --- a/compiler/seminst.nim +++ b/compiler/seminst.nim @@ -388,6 +388,7 @@ proc generateInstance(c: PContext, fn: PSym, pt: TIdTable, for j in 1..