summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2021-01-11 09:09:38 +0000
committerGitHub <noreply@github.com>2021-01-11 10:09:38 +0100
commit0286a0879bc44e5267a5fd36e6f4aac8f78713ea (patch)
tree727a46cfaf53236a064d6e53223cfb0cfd518593 /compiler
parent510e383d9233641a82ef25d3e3fe3e2eba3a4388 (diff)
downloadNim-0286a0879bc44e5267a5fd36e6f4aac8f78713ea.tar.gz
fix #16651 (#16658)
* fix #16651
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 64113a4c6..45f20da9b 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -1059,6 +1059,13 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
       # disable the bindOnce behavior for the type class
       result = recurse(paramType.base, true)
 
+  of tyTuple:
+    for i in 0..<paramType.len:
+      let t = recurse(paramType[i])
+      if t != nil:
+        paramType[i] = t
+        result = paramType
+
   of tyAlias, tyOwned, tySink:
     result = recurse(paramType.base)