diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-06-20 07:40:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 07:40:45 +0200 |
commit | c65a5d754b791dfad72420fa27cfe933c6a7782c (patch) | |
tree | b146a231876a8351ba586912ee867c121ac6218c /compiler/ccgexprs.nim | |
parent | 1a074fffa421b6cab0357e86d1011cc39eafcc61 (diff) | |
download | Nim-c65a5d754b791dfad72420fa27cfe933c6a7782c.tar.gz |
[bugfix] owned closures (#11544)
Diffstat (limited to 'compiler/ccgexprs.nim')
-rw-r--r-- | compiler/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index bf39788fa..4eaa5a17d 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -360,7 +360,7 @@ proc genAssignment(p: BProc, dest, src: TLoc, flags: TAssignmentFlags) = else: linefmt(p, cpsStmts, "$1 = $2;$n", [rdLoc(dest), rdLoc(src)]) of tyPtr, tyPointer, tyChar, tyBool, tyEnum, tyCString, - tyInt..tyUInt64, tyRange, tyVar, tyLent: + tyInt..tyUInt64, tyRange, tyVar, tyLent, tyNil: linefmt(p, cpsStmts, "$1 = $2;$n", [rdLoc(dest), rdLoc(src)]) else: internalError(p.config, "genAssignment: " & $ty.kind) |