From 2ce9845fe4bd2196fd08a2bca0b3c259ed8838d2 Mon Sep 17 00:00:00 2001 From: Araq Date: Wed, 30 Jan 2019 19:48:21 +0100 Subject: [PATCH] fixes silly typo causing tons of async regressions --- compiler/lambdalifting.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/lambdalifting.nim b/compiler/lambdalifting.nim index 1c12688a33..ba67f0d4e7 100644 --- a/compiler/lambdalifting.nim +++ b/compiler/lambdalifting.nim @@ -336,7 +336,7 @@ proc createUpField(c: var DetectionPass; dest, dep: PSym; info: TLineInfo) = let fieldType = if c.graph.config.selectedGc == gcDestructors: c.getEnvTypeForOwnerUp(dep, info) #getHiddenParam(dep).typ else: - c.getEnvTypeForOwner(dest, info) + c.getEnvTypeForOwner(dep, info) if refObj == fieldType: localError(c.graph.config, dep.info, "internal error: invalid up reference computed")