summary refs log tree commit diff stats
path: root/compiler/sinkparameter_inference.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/sinkparameter_inference.nim')
-rw-r--r--compiler/sinkparameter_inference.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sinkparameter_inference.nim b/compiler/sinkparameter_inference.nim
index 841f2de8e..fa9f2b445 100644
--- a/compiler/sinkparameter_inference.nim
+++ b/compiler/sinkparameter_inference.nim
@@ -32,7 +32,7 @@ proc checkForSink*(config: ConfigRef; idgen: IdGenerator; owner: PSym; arg: PNod
       if sfWasForwarded notin owner.flags:
         let argType = arg.sym.typ
 
-        let sinkType = newType(tySink, nextId(idgen), owner)
+        let sinkType = newType(tySink, nextTypeId(idgen), owner)
         sinkType.size = argType.size
         sinkType.align = argType.align
         sinkType.paddingAtEnd = argType.paddingAtEnd