summary refs log tree commit diff stats
path: root/compiler/semtypinst.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-09-04 15:57:16 +0200
committerGitHub <noreply@github.com>2021-09-04 15:57:16 +0200
commite8dad482a309b1c33056aba22550d691845414d7 (patch)
treed6ece825431349d2287eaa068ecf34a863d54172 /compiler/semtypinst.nim
parentb3ad68edea72f04275c9b1e330cafb77254d945c (diff)
downloadNim-e8dad482a309b1c33056aba22550d691845414d7.tar.gz
fixes #16246 (#18800)
Diffstat (limited to 'compiler/semtypinst.nim')
-rw-r--r--compiler/semtypinst.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypinst.nim b/compiler/semtypinst.nim
index 18febb52e..9f9eb9489 100644
--- a/compiler/semtypinst.nim
+++ b/compiler/semtypinst.nim
@@ -51,7 +51,7 @@ proc searchInstTypes*(g: ModuleGraph; key: PType): PType =
       for j in 1..high(key.sons):
         # XXX sameType is not really correct for nested generics?
         if not compareTypes(inst[j], key[j],
-                            flags = {ExactGenericParams}):
+                            flags = {ExactGenericParams, PickyCAliases}):
           break matchType
 
       return inst